﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace PrivateTracker.Service.Database.Migrations.Migrations
{
    public partial class v100 : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.CreateTable(
                name: "sys_app",
                columns: table => new
                {
                    Id = table.Column<long>(type: "INTEGER", nullable: false, comment: "Id主键"),
                    Name = table.Column<string>(type: "TEXT", maxLength: 20, nullable: false, comment: "名称"),
                    Code = table.Column<string>(type: "TEXT", maxLength: 50, nullable: false, comment: "编码"),
                    Active = table.Column<string>(type: "TEXT", maxLength: 5, nullable: true, comment: "是否默认激活"),
                    Status = table.Column<int>(type: "INTEGER", nullable: false, comment: "状态"),
                    Sort = table.Column<int>(type: "INTEGER", nullable: false, comment: "排序"),
                    CreatedTime = table.Column<DateTimeOffset>(type: "TEXT", nullable: true, comment: "创建时间"),
                    UpdatedTime = table.Column<DateTimeOffset>(type: "TEXT", nullable: true, comment: "更新时间"),
                    CreatedUserId = table.Column<long>(type: "INTEGER", nullable: true, comment: "创建者Id"),
                    CreatedUserName = table.Column<string>(type: "TEXT", maxLength: 50, nullable: true, comment: "创建者名称"),
                    UpdatedUserId = table.Column<long>(type: "INTEGER", nullable: true, comment: "修改者Id"),
                    UpdatedUserName = table.Column<string>(type: "TEXT", maxLength: 50, nullable: true, comment: "修改者名称"),
                    IsDeleted = table.Column<bool>(type: "INTEGER", nullable: false, comment: "软删除标记")
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_sys_app", x => x.Id);
                },
                comment: "系统应用表");

            migrationBuilder.CreateTable(
                name: "sys_config",
                columns: table => new
                {
                    Id = table.Column<long>(type: "INTEGER", nullable: false, comment: "Id主键"),
                    Name = table.Column<string>(type: "TEXT", maxLength: 50, nullable: false, comment: "名称"),
                    Code = table.Column<string>(type: "TEXT", maxLength: 50, nullable: false, comment: "编码"),
                    Value = table.Column<string>(type: "TEXT", maxLength: 50, nullable: true, comment: "属性值"),
                    SysFlag = table.Column<string>(type: "TEXT", maxLength: 5, nullable: true, comment: "是否是系统参数"),
                    Remark = table.Column<string>(type: "TEXT", maxLength: 100, nullable: true, comment: "备注"),
                    Status = table.Column<int>(type: "INTEGER", nullable: false, comment: "状态"),
                    GroupCode = table.Column<string>(type: "TEXT", maxLength: 50, nullable: true, comment: "常量所属分类的编码"),
                    CreatedTime = table.Column<DateTimeOffset>(type: "TEXT", nullable: true, comment: "创建时间"),
                    UpdatedTime = table.Column<DateTimeOffset>(type: "TEXT", nullable: true, comment: "更新时间"),
                    CreatedUserId = table.Column<long>(type: "INTEGER", nullable: true, comment: "创建者Id"),
                    CreatedUserName = table.Column<string>(type: "TEXT", maxLength: 50, nullable: true, comment: "创建者名称"),
                    UpdatedUserId = table.Column<long>(type: "INTEGER", nullable: true, comment: "修改者Id"),
                    UpdatedUserName = table.Column<string>(type: "TEXT", maxLength: 50, nullable: true, comment: "修改者名称"),
                    IsDeleted = table.Column<bool>(type: "INTEGER", nullable: false, comment: "软删除标记")
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_sys_config", x => x.Id);
                },
                comment: "参数配置表");

            migrationBuilder.CreateTable(
                name: "sys_file",
                columns: table => new
                {
                    Id = table.Column<long>(type: "INTEGER", nullable: false, comment: "Id主键"),
                    FileLocation = table.Column<int>(type: "INTEGER", nullable: false, comment: "文件存储位置"),
                    FileBucket = table.Column<string>(type: "TEXT", maxLength: 100, nullable: true, comment: "文件仓库"),
                    FileOriginName = table.Column<string>(type: "TEXT", maxLength: 100, nullable: true, comment: "文件名称"),
                    FileSuffix = table.Column<string>(type: "TEXT", maxLength: 50, nullable: true, comment: "文件后缀"),
                    FileSizeKb = table.Column<string>(type: "TEXT", maxLength: 10, nullable: true, comment: "文件大小kb"),
                    FileSizeInfo = table.Column<string>(type: "TEXT", maxLength: 50, nullable: true, comment: "文件大小信息"),
                    FileObjectName = table.Column<string>(type: "TEXT", maxLength: 100, nullable: true, comment: "存储到bucket的名称"),
                    FilePath = table.Column<string>(type: "TEXT", maxLength: 100, nullable: true, comment: "存储路径"),
                    CreatedTime = table.Column<DateTimeOffset>(type: "TEXT", nullable: true, comment: "创建时间"),
                    UpdatedTime = table.Column<DateTimeOffset>(type: "TEXT", nullable: true, comment: "更新时间"),
                    CreatedUserId = table.Column<long>(type: "INTEGER", nullable: true, comment: "创建者Id"),
                    CreatedUserName = table.Column<string>(type: "TEXT", maxLength: 50, nullable: true, comment: "创建者名称"),
                    UpdatedUserId = table.Column<long>(type: "INTEGER", nullable: true, comment: "修改者Id"),
                    UpdatedUserName = table.Column<string>(type: "TEXT", maxLength: 50, nullable: true, comment: "修改者名称"),
                    IsDeleted = table.Column<bool>(type: "INTEGER", nullable: false, comment: "软删除标记")
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_sys_file", x => x.Id);
                },
                comment: "文件信息表");

            migrationBuilder.CreateTable(
                name: "sys_log_audit",
                columns: table => new
                {
                    Id = table.Column<int>(type: "INTEGER", nullable: false)
                        .Annotation("Sqlite:Autoincrement", true),
                    TableName = table.Column<string>(type: "TEXT", maxLength: 50, nullable: true, comment: "表名"),
                    ColumnName = table.Column<string>(type: "TEXT", maxLength: 50, nullable: true, comment: "列名"),
                    NewValue = table.Column<string>(type: "TEXT", nullable: true, comment: "新值"),
                    OldValue = table.Column<string>(type: "TEXT", nullable: true, comment: "旧值"),
                    CreatedTime = table.Column<DateTimeOffset>(type: "TEXT", nullable: true, comment: "操作时间"),
                    UserId = table.Column<long>(type: "INTEGER", nullable: false, comment: "操作人Id"),
                    UserName = table.Column<string>(type: "TEXT", maxLength: 50, nullable: true, comment: "操作人名称"),
                    Operate = table.Column<int>(type: "INTEGER", nullable: false, comment: "操作方式"),
                    TenantId = table.Column<Guid>(type: "TEXT", nullable: true)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_sys_log_audit", x => x.Id);
                },
                comment: "审计日志表");

            migrationBuilder.CreateTable(
                name: "sys_log_ex",
                columns: table => new
                {
                    Id = table.Column<int>(type: "INTEGER", nullable: false)
                        .Annotation("Sqlite:Autoincrement", true),
                    Account = table.Column<string>(type: "TEXT", maxLength: 50, nullable: true, comment: "操作人"),
                    Name = table.Column<string>(type: "TEXT", maxLength: 100, nullable: true, comment: "名称"),
                    ClassName = table.Column<string>(type: "TEXT", maxLength: 100, nullable: true, comment: "类名"),
                    MethodName = table.Column<string>(type: "TEXT", maxLength: 100, nullable: true, comment: "方法名"),
                    ExceptionName = table.Column<string>(type: "TEXT", nullable: true, comment: "异常名称"),
                    ExceptionMsg = table.Column<string>(type: "TEXT", nullable: true, comment: "异常信息"),
                    ExceptionSource = table.Column<string>(type: "TEXT", nullable: true, comment: "异常源"),
                    StackTrace = table.Column<string>(type: "TEXT", nullable: true, comment: "堆栈信息"),
                    ParamsObj = table.Column<string>(type: "TEXT", nullable: true, comment: "参数对象"),
                    ExceptionTime = table.Column<DateTimeOffset>(type: "TEXT", nullable: true, comment: "异常时间"),
                    TenantId = table.Column<Guid>(type: "TEXT", nullable: true)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_sys_log_ex", x => x.Id);
                },
                comment: "异常日志表");

            migrationBuilder.CreateTable(
                name: "sys_log_op",
                columns: table => new
                {
                    Id = table.Column<int>(type: "INTEGER", nullable: false)
                        .Annotation("Sqlite:Autoincrement", true),
                    Name = table.Column<string>(type: "TEXT", maxLength: 100, nullable: true, comment: "名称"),
                    Success = table.Column<int>(type: "INTEGER", nullable: false, comment: "是否执行成功"),
                    Message = table.Column<string>(type: "TEXT", nullable: true, comment: "具体消息"),
                    Ip = table.Column<string>(type: "TEXT", maxLength: 20, nullable: true, comment: "IP"),
                    Location = table.Column<string>(type: "TEXT", maxLength: 1024, nullable: true, comment: "地址"),
                    Browser = table.Column<string>(type: "TEXT", maxLength: 100, nullable: true, comment: "浏览器"),
                    Os = table.Column<string>(type: "TEXT", maxLength: 100, nullable: true, comment: "操作系统"),
                    Url = table.Column<string>(type: "TEXT", maxLength: 100, nullable: true, comment: "请求地址"),
                    ClassName = table.Column<string>(type: "TEXT", maxLength: 100, nullable: true, comment: "类名称"),
                    MethodName = table.Column<string>(type: "TEXT", maxLength: 100, nullable: true, comment: "方法名称"),
                    ReqMethod = table.Column<string>(type: "TEXT", maxLength: 10, nullable: true, comment: "请求方式"),
                    Param = table.Column<string>(type: "TEXT", nullable: true, comment: "请求参数"),
                    Result = table.Column<string>(type: "TEXT", nullable: true, comment: "返回结果"),
                    ElapsedTime = table.Column<long>(type: "INTEGER", nullable: false, comment: "耗时"),
                    OpTime = table.Column<DateTimeOffset>(type: "TEXT", nullable: true, comment: "操作时间"),
                    Account = table.Column<string>(type: "TEXT", maxLength: 50, nullable: true, comment: "操作人"),
                    TenantId = table.Column<Guid>(type: "TEXT", nullable: true)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_sys_log_op", x => x.Id);
                },
                comment: "操作日志表");

            migrationBuilder.CreateTable(
                name: "sys_log_vis",
                columns: table => new
                {
                    Id = table.Column<int>(type: "INTEGER", nullable: false)
                        .Annotation("Sqlite:Autoincrement", true),
                    Name = table.Column<string>(type: "TEXT", maxLength: 100, nullable: true, comment: "名称"),
                    Success = table.Column<int>(type: "INTEGER", nullable: false, comment: "是否执行成功"),
                    Message = table.Column<string>(type: "TEXT", nullable: true, comment: "具体消息"),
                    Ip = table.Column<string>(type: "TEXT", maxLength: 20, nullable: true, comment: "IP"),
                    Location = table.Column<string>(type: "TEXT", maxLength: 1024, nullable: true, comment: "地址"),
                    Browser = table.Column<string>(type: "TEXT", maxLength: 100, nullable: true, comment: "浏览器"),
                    Os = table.Column<string>(type: "TEXT", maxLength: 100, nullable: true, comment: "操作系统"),
                    VisType = table.Column<int>(type: "INTEGER", nullable: false, comment: "访问类型"),
                    VisTime = table.Column<DateTimeOffset>(type: "TEXT", nullable: true, comment: "访问时间"),
                    Account = table.Column<string>(type: "TEXT", maxLength: 50, nullable: true, comment: "访问人"),
                    TenantId = table.Column<Guid>(type: "TEXT", nullable: true)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_sys_log_vis", x => x.Id);
                },
                comment: "访问日志表");

            migrationBuilder.CreateTable(
                name: "sys_menu",
                columns: table => new
                {
                    Id = table.Column<long>(type: "INTEGER", nullable: false, comment: "Id主键"),
                    Pid = table.Column<long>(type: "INTEGER", nullable: false, comment: "父Id"),
                    Pids = table.Column<string>(type: "TEXT", nullable: true, comment: "父Ids"),
                    Name = table.Column<string>(type: "TEXT", maxLength: 20, nullable: false, comment: "名称"),
                    Code = table.Column<string>(type: "TEXT", maxLength: 50, nullable: false, comment: "编码"),
                    Type = table.Column<int>(type: "INTEGER", nullable: false, comment: "菜单类型"),
                    Icon = table.Column<string>(type: "TEXT", maxLength: 20, nullable: true, comment: "图标"),
                    Router = table.Column<string>(type: "TEXT", maxLength: 100, nullable: true, comment: "路由地址"),
                    Component = table.Column<string>(type: "TEXT", maxLength: 100, nullable: true, comment: "组件地址"),
                    Permission = table.Column<string>(type: "TEXT", maxLength: 100, nullable: true, comment: "权限标识"),
                    Application = table.Column<string>(type: "TEXT", maxLength: 50, nullable: true, comment: "应用分类"),
                    OpenType = table.Column<int>(type: "INTEGER", nullable: false, comment: "打开方式"),
                    Visible = table.Column<string>(type: "TEXT", maxLength: 5, nullable: true, comment: "是否可见"),
                    Link = table.Column<string>(type: "TEXT", maxLength: 100, nullable: true, comment: "内链地址"),
                    Redirect = table.Column<string>(type: "TEXT", maxLength: 100, nullable: true, comment: "重定向地址"),
                    Weight = table.Column<int>(type: "INTEGER", nullable: false, comment: "权重"),
                    Sort = table.Column<int>(type: "INTEGER", nullable: false, comment: "排序"),
                    Remark = table.Column<string>(type: "TEXT", maxLength: 100, nullable: true, comment: "备注"),
                    Status = table.Column<int>(type: "INTEGER", nullable: false),
                    CreatedTime = table.Column<DateTimeOffset>(type: "TEXT", nullable: true, comment: "创建时间"),
                    UpdatedTime = table.Column<DateTimeOffset>(type: "TEXT", nullable: true, comment: "更新时间"),
                    CreatedUserId = table.Column<long>(type: "INTEGER", nullable: true, comment: "创建者Id"),
                    CreatedUserName = table.Column<string>(type: "TEXT", maxLength: 50, nullable: true, comment: "创建者名称"),
                    UpdatedUserId = table.Column<long>(type: "INTEGER", nullable: true, comment: "修改者Id"),
                    UpdatedUserName = table.Column<string>(type: "TEXT", maxLength: 50, nullable: true, comment: "修改者名称"),
                    IsDeleted = table.Column<bool>(type: "INTEGER", nullable: false, comment: "软删除标记")
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_sys_menu", x => x.Id);
                },
                comment: "菜单表");

            migrationBuilder.CreateTable(
                name: "sys_role",
                columns: table => new
                {
                    Id = table.Column<long>(type: "INTEGER", nullable: false, comment: "Id主键"),
                    Name = table.Column<string>(type: "TEXT", maxLength: 20, nullable: false, comment: "名称"),
                    Code = table.Column<string>(type: "TEXT", maxLength: 50, nullable: false, comment: "编码"),
                    RoleType = table.Column<int>(type: "INTEGER", nullable: false, comment: "角色类型-超级管理组_10000、管理组_1000、等级组_100"),
                    Level = table.Column<int>(type: "INTEGER", nullable: false, comment: "等级"),
                    Sort = table.Column<int>(type: "INTEGER", nullable: false, comment: "排序"),
                    Remark = table.Column<string>(type: "TEXT", maxLength: 100, nullable: true, comment: "备注"),
                    Status = table.Column<int>(type: "INTEGER", nullable: false, comment: "状态"),
                    CreatedTime = table.Column<DateTimeOffset>(type: "TEXT", nullable: true, comment: "创建时间"),
                    UpdatedTime = table.Column<DateTimeOffset>(type: "TEXT", nullable: true, comment: "更新时间"),
                    CreatedUserId = table.Column<long>(type: "INTEGER", nullable: true, comment: "创建者Id"),
                    CreatedUserName = table.Column<string>(type: "TEXT", maxLength: 50, nullable: true, comment: "创建者名称"),
                    UpdatedUserId = table.Column<long>(type: "INTEGER", nullable: true, comment: "修改者Id"),
                    UpdatedUserName = table.Column<string>(type: "TEXT", maxLength: 50, nullable: true, comment: "修改者名称"),
                    IsDeleted = table.Column<bool>(type: "INTEGER", nullable: false, comment: "软删除标记"),
                    TenantId = table.Column<long>(type: "INTEGER", nullable: true, comment: "租户id")
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_sys_role", x => x.Id);
                },
                comment: "角色表");

            migrationBuilder.CreateTable(
                name: "sys_timer",
                columns: table => new
                {
                    Id = table.Column<long>(type: "INTEGER", nullable: false, comment: "Id主键"),
                    JobName = table.Column<string>(type: "TEXT", maxLength: 20, nullable: false, comment: "任务名称"),
                    DoOnce = table.Column<bool>(type: "INTEGER", nullable: false, comment: "只执行一次"),
                    StartNow = table.Column<bool>(type: "INTEGER", nullable: false, comment: "立即执行"),
                    ExecuteType = table.Column<int>(type: "INTEGER", nullable: false, comment: "执行类型"),
                    Interval = table.Column<int>(type: "INTEGER", nullable: true, comment: "间隔时间"),
                    Cron = table.Column<string>(type: "TEXT", maxLength: 20, nullable: true, comment: "Cron表达式"),
                    TimerType = table.Column<int>(type: "INTEGER", nullable: false, comment: "定时器类型"),
                    RequestUrl = table.Column<string>(type: "TEXT", maxLength: 200, nullable: true, comment: "请求url"),
                    RequestParameters = table.Column<string>(type: "TEXT", nullable: true, comment: "请求参数"),
                    Headers = table.Column<string>(type: "TEXT", nullable: true, comment: "Headers"),
                    RequestType = table.Column<int>(type: "INTEGER", nullable: false, comment: "请求类型"),
                    Remark = table.Column<string>(type: "TEXT", maxLength: 100, nullable: true, comment: "备注"),
                    CreatedTime = table.Column<DateTimeOffset>(type: "TEXT", nullable: true, comment: "创建时间"),
                    UpdatedTime = table.Column<DateTimeOffset>(type: "TEXT", nullable: true, comment: "更新时间"),
                    CreatedUserId = table.Column<long>(type: "INTEGER", nullable: true, comment: "创建者Id"),
                    CreatedUserName = table.Column<string>(type: "TEXT", maxLength: 50, nullable: true, comment: "创建者名称"),
                    UpdatedUserId = table.Column<long>(type: "INTEGER", nullable: true, comment: "修改者Id"),
                    UpdatedUserName = table.Column<string>(type: "TEXT", maxLength: 50, nullable: true, comment: "修改者名称"),
                    IsDeleted = table.Column<bool>(type: "INTEGER", nullable: false, comment: "软删除标记")
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_sys_timer", x => x.Id);
                },
                comment: "定时任务表");

            migrationBuilder.CreateTable(
                name: "sys_user",
                columns: table => new
                {
                    Id = table.Column<long>(type: "INTEGER", nullable: false, comment: "Id主键"),
                    Account = table.Column<string>(type: "TEXT", maxLength: 50, nullable: false, comment: "账号"),
                    Password = table.Column<string>(type: "TEXT", maxLength: 50, nullable: false, comment: "密码"),
                    NickName = table.Column<string>(type: "TEXT", maxLength: 20, nullable: true, comment: "昵称"),
                    Avatar = table.Column<string>(type: "TEXT", nullable: true, comment: "头像"),
                    Birthday = table.Column<DateTimeOffset>(type: "TEXT", nullable: true, comment: "生日"),
                    Sex = table.Column<int>(type: "INTEGER", nullable: false, comment: "性别-男_1、女_2"),
                    Email = table.Column<string>(type: "TEXT", maxLength: 50, nullable: true, comment: "邮箱"),
                    LastLoginIp = table.Column<string>(type: "TEXT", maxLength: 20, nullable: true, comment: "最后登录IP"),
                    LastLoginTime = table.Column<DateTimeOffset>(type: "TEXT", nullable: true, comment: "最后登录时间"),
                    Status = table.Column<int>(type: "INTEGER", nullable: false, comment: "状态-正常_0、停用_1、删除_2"),
                    PassKey = table.Column<string>(type: "TEXT", maxLength: 32, nullable: true, comment: "tracker使用的密钥"),
                    CreatedTime = table.Column<DateTimeOffset>(type: "TEXT", nullable: true, comment: "创建时间"),
                    UpdatedTime = table.Column<DateTimeOffset>(type: "TEXT", nullable: true, comment: "更新时间"),
                    CreatedUserId = table.Column<long>(type: "INTEGER", nullable: true, comment: "创建者Id"),
                    CreatedUserName = table.Column<string>(type: "TEXT", maxLength: 50, nullable: true, comment: "创建者名称"),
                    UpdatedUserId = table.Column<long>(type: "INTEGER", nullable: true, comment: "修改者Id"),
                    UpdatedUserName = table.Column<string>(type: "TEXT", maxLength: 50, nullable: true, comment: "修改者名称"),
                    IsDeleted = table.Column<bool>(type: "INTEGER", nullable: false, comment: "软删除标记"),
                    TenantId = table.Column<long>(type: "INTEGER", nullable: true, comment: "租户id")
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_sys_user", x => x.Id);
                },
                comment: "用户表");

            migrationBuilder.CreateTable(
                name: "tracker_torrent",
                columns: table => new
                {
                    Id = table.Column<long>(type: "INTEGER", nullable: false, comment: "Id主键"),
                    Title = table.Column<string>(type: "TEXT", maxLength: 255, nullable: true, comment: "标题"),
                    Subtitle = table.Column<string>(type: "TEXT", maxLength: 255, nullable: true, comment: "副标题"),
                    HashInfo = table.Column<string>(type: "TEXT", maxLength: 20, nullable: true, comment: "标识"),
                    DouBanId = table.Column<long>(type: "INTEGER", nullable: true, comment: "豆瓣ID"),
                    TotalSize = table.Column<long>(type: "INTEGER", nullable: false, comment: "大小"),
                    Completed = table.Column<int>(type: "INTEGER", nullable: false, comment: "已完成数"),
                    Complete = table.Column<int>(type: "INTEGER", nullable: false, comment: "做种数"),
                    InComplete = table.Column<int>(type: "INTEGER", nullable: false, comment: "未完成数"),
                    FileId = table.Column<long>(type: "INTEGER", nullable: false, comment: "种子文件ID"),
                    CreatedTime = table.Column<DateTimeOffset>(type: "TEXT", nullable: true, comment: "创建时间"),
                    UpdatedTime = table.Column<DateTimeOffset>(type: "TEXT", nullable: true, comment: "更新时间"),
                    CreatedUserId = table.Column<long>(type: "INTEGER", nullable: true, comment: "创建者Id"),
                    CreatedUserName = table.Column<string>(type: "TEXT", maxLength: 50, nullable: true, comment: "创建者名称"),
                    UpdatedUserId = table.Column<long>(type: "INTEGER", nullable: true, comment: "修改者Id"),
                    UpdatedUserName = table.Column<string>(type: "TEXT", maxLength: 50, nullable: true, comment: "修改者名称"),
                    IsDeleted = table.Column<bool>(type: "INTEGER", nullable: false, comment: "软删除标记"),
                    TenantId = table.Column<long>(type: "INTEGER", nullable: true, comment: "租户id")
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_tracker_torrent", x => x.Id);
                },
                comment: "种子信息");

            migrationBuilder.CreateTable(
                name: "sys_role_menu",
                columns: table => new
                {
                    SysRoleId = table.Column<long>(type: "INTEGER", nullable: false, comment: "角色Id"),
                    SysMenuId = table.Column<long>(type: "INTEGER", nullable: false, comment: "菜单Id")
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_sys_role_menu", x => new { x.SysRoleId, x.SysMenuId });
                    table.ForeignKey(
                        name: "FK_sys_role_menu_sys_menu_SysMenuId",
                        column: x => x.SysMenuId,
                        principalTable: "sys_menu",
                        principalColumn: "Id",
                        onDelete: ReferentialAction.Cascade);
                    table.ForeignKey(
                        name: "FK_sys_role_menu_sys_role_SysRoleId",
                        column: x => x.SysRoleId,
                        principalTable: "sys_role",
                        principalColumn: "Id",
                        onDelete: ReferentialAction.Cascade);
                },
                comment: "角色菜单表");

            migrationBuilder.CreateTable(
                name: "sys_user_role",
                columns: table => new
                {
                    SysUserId = table.Column<long>(type: "INTEGER", nullable: false, comment: "用户Id"),
                    SysRoleId = table.Column<long>(type: "INTEGER", nullable: false, comment: "角色Id")
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_sys_user_role", x => new { x.SysUserId, x.SysRoleId });
                    table.ForeignKey(
                        name: "FK_sys_user_role_sys_role_SysRoleId",
                        column: x => x.SysRoleId,
                        principalTable: "sys_role",
                        principalColumn: "Id",
                        onDelete: ReferentialAction.Cascade);
                    table.ForeignKey(
                        name: "FK_sys_user_role_sys_user_SysUserId",
                        column: x => x.SysUserId,
                        principalTable: "sys_user",
                        principalColumn: "Id",
                        onDelete: ReferentialAction.Cascade);
                },
                comment: "用户角色表");

            migrationBuilder.CreateTable(
                name: "tracker_peer",
                columns: table => new
                {
                    Id = table.Column<long>(type: "INTEGER", nullable: false, comment: "Id主键"),
                    TorrentId = table.Column<long>(type: "INTEGER", nullable: false, comment: "主表外键"),
                    PeerId = table.Column<string>(type: "TEXT", maxLength: 20, nullable: true, comment: "客户端标识"),
                    Ip = table.Column<string>(type: "TEXT", maxLength: 50, nullable: true, comment: "Ip地址"),
                    Port = table.Column<ushort>(type: "INTEGER", nullable: false, comment: "端口"),
                    DownLoaded = table.Column<long>(type: "INTEGER", nullable: false, comment: "上传量"),
                    Uploaded = table.Column<long>(type: "INTEGER", nullable: false, comment: "下载量"),
                    Agent = table.Column<string>(type: "TEXT", maxLength: 50, nullable: true, comment: "客户端"),
                    PrevActon = table.Column<DateTimeOffset>(type: "TEXT", nullable: true, comment: "上次活动时间"),
                    LastActon = table.Column<DateTimeOffset>(type: "TEXT", nullable: true, comment: "最后活动时间"),
                    CreatedTime = table.Column<DateTimeOffset>(type: "TEXT", nullable: true, comment: "创建时间"),
                    UpdatedTime = table.Column<DateTimeOffset>(type: "TEXT", nullable: true, comment: "更新时间"),
                    CreatedUserId = table.Column<long>(type: "INTEGER", nullable: true, comment: "创建者Id"),
                    CreatedUserName = table.Column<string>(type: "TEXT", maxLength: 50, nullable: true, comment: "创建者名称"),
                    UpdatedUserId = table.Column<long>(type: "INTEGER", nullable: true, comment: "修改者Id"),
                    UpdatedUserName = table.Column<string>(type: "TEXT", maxLength: 50, nullable: true, comment: "修改者名称"),
                    IsDeleted = table.Column<bool>(type: "INTEGER", nullable: false, comment: "软删除标记"),
                    TenantId = table.Column<long>(type: "INTEGER", nullable: true, comment: "租户id")
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_tracker_peer", x => x.Id);
                    table.ForeignKey(
                        name: "FK_tracker_peer_tracker_torrent_TorrentId",
                        column: x => x.TorrentId,
                        principalTable: "tracker_torrent",
                        principalColumn: "Id",
                        onDelete: ReferentialAction.Cascade);
                },
                comment: "种子peer");

            migrationBuilder.InsertData(
                table: "sys_config",
                columns: new[] { "Id", "Code", "CreatedTime", "CreatedUserId", "CreatedUserName", "GroupCode", "IsDeleted", "Name", "Remark", "Status", "SysFlag", "UpdatedTime", "UpdatedUserId", "UpdatedUserName", "Value" },
                values: new object[] { 142307070902342L, "DILON_JWT_SECRET", null, null, null, "DEFAULT", false, "jwt密钥", "（重要）jwt密钥，默认为空，自行设置", 0, "Y", null, null, null, "xiaonuo" });

            migrationBuilder.InsertData(
                table: "sys_config",
                columns: new[] { "Id", "Code", "CreatedTime", "CreatedUserId", "CreatedUserName", "GroupCode", "IsDeleted", "Name", "Remark", "Status", "SysFlag", "UpdatedTime", "UpdatedUserId", "UpdatedUserName", "Value" },
                values: new object[] { 142307070902343L, "DILON_DEFAULT_PASSWORD", null, null, null, "DEFAULT", false, "默认密码", "默认密码", 0, "Y", null, null, null, "123456" });

            migrationBuilder.InsertData(
                table: "sys_config",
                columns: new[] { "Id", "Code", "CreatedTime", "CreatedUserId", "CreatedUserName", "GroupCode", "IsDeleted", "Name", "Remark", "Status", "SysFlag", "UpdatedTime", "UpdatedUserId", "UpdatedUserName", "Value" },
                values: new object[] { 142307070902344L, "DILON_TOKEN_EXPIRE", null, null, null, "DEFAULT", false, "token过期时间", "token过期时间（单位：秒）", 0, "Y", null, null, null, "86400" });

            migrationBuilder.InsertData(
                table: "sys_config",
                columns: new[] { "Id", "Code", "CreatedTime", "CreatedUserId", "CreatedUserName", "GroupCode", "IsDeleted", "Name", "Remark", "Status", "SysFlag", "UpdatedTime", "UpdatedUserId", "UpdatedUserName", "Value" },
                values: new object[] { 142307070902345L, "DILON_SESSION_EXPIRE", null, null, null, "DEFAULT", false, "session会话过期时间", "session会话过期时间（单位：秒）", 0, "Y", null, null, null, "7200" });

            migrationBuilder.InsertData(
                table: "sys_config",
                columns: new[] { "Id", "Code", "CreatedTime", "CreatedUserId", "CreatedUserName", "GroupCode", "IsDeleted", "Name", "Remark", "Status", "SysFlag", "UpdatedTime", "UpdatedUserId", "UpdatedUserName", "Value" },
                values: new object[] { 142307070902346L, "DILON_ALIYUN_SMS_ACCESSKEY_ID", null, null, null, "ALIYUN_SMS", false, "阿里云短信keyId", "阿里云短信keyId", 0, "Y", null, null, null, "你的keyId" });

            migrationBuilder.InsertData(
                table: "sys_config",
                columns: new[] { "Id", "Code", "CreatedTime", "CreatedUserId", "CreatedUserName", "GroupCode", "IsDeleted", "Name", "Remark", "Status", "SysFlag", "UpdatedTime", "UpdatedUserId", "UpdatedUserName", "Value" },
                values: new object[] { 142307070902347L, "DILON_ALIYUN_SMS_ACCESSKEY_SECRET", null, null, null, "ALIYUN_SMS", false, "阿里云短信secret", "阿里云短信secret", 0, "Y", null, null, null, "你的secret" });

            migrationBuilder.InsertData(
                table: "sys_config",
                columns: new[] { "Id", "Code", "CreatedTime", "CreatedUserId", "CreatedUserName", "GroupCode", "IsDeleted", "Name", "Remark", "Status", "SysFlag", "UpdatedTime", "UpdatedUserId", "UpdatedUserName", "Value" },
                values: new object[] { 142307070902348L, "DILON_ALIYUN_SMS_SIGN_NAME", null, null, null, "ALIYUN_SMS", false, "阿里云短信签名", "阿里云短信签名", 0, "Y", null, null, null, "你的签名" });

            migrationBuilder.InsertData(
                table: "sys_config",
                columns: new[] { "Id", "Code", "CreatedTime", "CreatedUserId", "CreatedUserName", "GroupCode", "IsDeleted", "Name", "Remark", "Status", "SysFlag", "UpdatedTime", "UpdatedUserId", "UpdatedUserName", "Value" },
                values: new object[] { 142307070902349L, "DILON_ALIYUN_SMS_LOGIN_TEMPLATE_CODE", null, null, null, "ALIYUN_SMS", false, "阿里云短信-登录模板号", "阿里云短信-登录模板号", 0, "Y", null, null, null, "SMS_1877123456" });

            migrationBuilder.InsertData(
                table: "sys_config",
                columns: new[] { "Id", "Code", "CreatedTime", "CreatedUserId", "CreatedUserName", "GroupCode", "IsDeleted", "Name", "Remark", "Status", "SysFlag", "UpdatedTime", "UpdatedUserId", "UpdatedUserName", "Value" },
                values: new object[] { 142307070902350L, "DILON_ALIYUN_SMS_INVALIDATE_MINUTES", null, null, null, "ALIYUN_SMS", false, "阿里云短信默认失效时间", "阿里云短信默认失效时间（单位：分钟）", 0, "Y", null, null, null, "5" });

            migrationBuilder.InsertData(
                table: "sys_config",
                columns: new[] { "Id", "Code", "CreatedTime", "CreatedUserId", "CreatedUserName", "GroupCode", "IsDeleted", "Name", "Remark", "Status", "SysFlag", "UpdatedTime", "UpdatedUserId", "UpdatedUserName", "Value" },
                values: new object[] { 142307070902351L, "DILON_TENCENT_SMS_SECRET_ID", null, null, null, "TENCENT_SMS", false, "腾讯云短信secretId", "腾讯云短信secretId", 0, "Y", null, null, null, "你的secretId" });

            migrationBuilder.InsertData(
                table: "sys_config",
                columns: new[] { "Id", "Code", "CreatedTime", "CreatedUserId", "CreatedUserName", "GroupCode", "IsDeleted", "Name", "Remark", "Status", "SysFlag", "UpdatedTime", "UpdatedUserId", "UpdatedUserName", "Value" },
                values: new object[] { 142307070902352L, "DILON_TENCENT_SMS_SECRET_KEY", null, null, null, "TENCENT_SMS", false, "腾讯云短信secretKey", "腾讯云短信secretKey", 0, "Y", null, null, null, "你的secretkey" });

            migrationBuilder.InsertData(
                table: "sys_config",
                columns: new[] { "Id", "Code", "CreatedTime", "CreatedUserId", "CreatedUserName", "GroupCode", "IsDeleted", "Name", "Remark", "Status", "SysFlag", "UpdatedTime", "UpdatedUserId", "UpdatedUserName", "Value" },
                values: new object[] { 142307070902353L, "DILON_TENCENT_SMS_SDK_APP_ID", null, null, null, "TENCENT_SMS", false, "腾讯云短信sdkAppId", "腾讯云短信sdkAppId", 0, "Y", null, null, null, "1400375123" });

            migrationBuilder.InsertData(
                table: "sys_config",
                columns: new[] { "Id", "Code", "CreatedTime", "CreatedUserId", "CreatedUserName", "GroupCode", "IsDeleted", "Name", "Remark", "Status", "SysFlag", "UpdatedTime", "UpdatedUserId", "UpdatedUserName", "Value" },
                values: new object[] { 142307070902354L, "DILON_TENCENT_SMS_SIGN", null, null, null, "TENCENT_SMS", false, "腾讯云短信签名", "腾讯云短信签名", 0, "Y", null, null, null, "你的签名" });

            migrationBuilder.InsertData(
                table: "sys_config",
                columns: new[] { "Id", "Code", "CreatedTime", "CreatedUserId", "CreatedUserName", "GroupCode", "IsDeleted", "Name", "Remark", "Status", "SysFlag", "UpdatedTime", "UpdatedUserId", "UpdatedUserName", "Value" },
                values: new object[] { 142307070902355L, "DILON_EMAIL_HOST", null, null, null, "EMAIL", false, "邮箱host", "邮箱host", 0, "Y", null, null, null, "smtp.126.com" });

            migrationBuilder.InsertData(
                table: "sys_config",
                columns: new[] { "Id", "Code", "CreatedTime", "CreatedUserId", "CreatedUserName", "GroupCode", "IsDeleted", "Name", "Remark", "Status", "SysFlag", "UpdatedTime", "UpdatedUserId", "UpdatedUserName", "Value" },
                values: new object[] { 142307070902356L, "DILON_EMAIL_USERNAME", null, null, null, "EMAIL", false, "邮箱用户名", "邮箱用户名", 0, "Y", null, null, null, "test@126.com" });

            migrationBuilder.InsertData(
                table: "sys_config",
                columns: new[] { "Id", "Code", "CreatedTime", "CreatedUserId", "CreatedUserName", "GroupCode", "IsDeleted", "Name", "Remark", "Status", "SysFlag", "UpdatedTime", "UpdatedUserId", "UpdatedUserName", "Value" },
                values: new object[] { 142307070902357L, "DILON_EMAIL_PASSWORD", null, null, null, "EMAIL", false, "邮箱密码", "邮箱密码", 0, "Y", null, null, null, "你的邮箱密码" });

            migrationBuilder.InsertData(
                table: "sys_config",
                columns: new[] { "Id", "Code", "CreatedTime", "CreatedUserId", "CreatedUserName", "GroupCode", "IsDeleted", "Name", "Remark", "Status", "SysFlag", "UpdatedTime", "UpdatedUserId", "UpdatedUserName", "Value" },
                values: new object[] { 142307070902358L, "DILON_EMAIL_PORT", null, null, null, "EMAIL", false, "邮箱端口", "邮箱端口", 0, "Y", null, null, null, "465" });

            migrationBuilder.InsertData(
                table: "sys_config",
                columns: new[] { "Id", "Code", "CreatedTime", "CreatedUserId", "CreatedUserName", "GroupCode", "IsDeleted", "Name", "Remark", "Status", "SysFlag", "UpdatedTime", "UpdatedUserId", "UpdatedUserName", "Value" },
                values: new object[] { 142307070902359L, "DILON_EMAIL_SSL", null, null, null, "EMAIL", false, "邮箱是否开启ssl", "邮箱是否开启ssl", 0, "Y", null, null, null, "true" });

            migrationBuilder.InsertData(
                table: "sys_config",
                columns: new[] { "Id", "Code", "CreatedTime", "CreatedUserId", "CreatedUserName", "GroupCode", "IsDeleted", "Name", "Remark", "Status", "SysFlag", "UpdatedTime", "UpdatedUserId", "UpdatedUserName", "Value" },
                values: new object[] { 142307070902360L, "DILON_EMAIL_FROM", null, null, null, "EMAIL", false, "邮箱发件人", "邮箱发件人", 0, "Y", null, null, null, "test@126.com" });

            migrationBuilder.InsertData(
                table: "sys_config",
                columns: new[] { "Id", "Code", "CreatedTime", "CreatedUserId", "CreatedUserName", "GroupCode", "IsDeleted", "Name", "Remark", "Status", "SysFlag", "UpdatedTime", "UpdatedUserId", "UpdatedUserName", "Value" },
                values: new object[] { 142307070902361L, "DILON_FILE_UPLOAD_PATH_FOR_WINDOWS", null, null, null, "FILE_PATH", false, "Win本地上传文件路径", "Win本地上传文件路径", 0, "Y", null, null, null, "D:/tmp" });

            migrationBuilder.InsertData(
                table: "sys_config",
                columns: new[] { "Id", "Code", "CreatedTime", "CreatedUserId", "CreatedUserName", "GroupCode", "IsDeleted", "Name", "Remark", "Status", "SysFlag", "UpdatedTime", "UpdatedUserId", "UpdatedUserName", "Value" },
                values: new object[] { 142307070902362L, "DILON_FILE_UPLOAD_PATH_FOR_LINUX", null, null, null, "FILE_PATH", false, "Linux/Mac本地上传文件路径", "Linux/Mac本地上传文件路径", 0, "Y", null, null, null, "/tmp" });

            migrationBuilder.InsertData(
                table: "sys_config",
                columns: new[] { "Id", "Code", "CreatedTime", "CreatedUserId", "CreatedUserName", "GroupCode", "IsDeleted", "Name", "Remark", "Status", "SysFlag", "UpdatedTime", "UpdatedUserId", "UpdatedUserName", "Value" },
                values: new object[] { 142307070902363L, "DILON_UN_XSS_FILTER_URL", null, null, null, "DEFAULT", false, "放开XSS过滤的接口", "多个url可以用英文逗号隔开", 0, "Y", null, null, null, "/demo/xssfilter,/demo/unxss" });

            migrationBuilder.InsertData(
                table: "sys_config",
                columns: new[] { "Id", "Code", "CreatedTime", "CreatedUserId", "CreatedUserName", "GroupCode", "IsDeleted", "Name", "Remark", "Status", "SysFlag", "UpdatedTime", "UpdatedUserId", "UpdatedUserName", "Value" },
                values: new object[] { 142307070902364L, "DILON_ENABLE_SINGLE_LOGIN", null, null, null, "DEFAULT", false, "单用户登陆的开关", "true-打开，false-关闭，如果一个人登录两次，就会将上一次登陆挤下去", 0, "Y", null, null, null, "false" });

            migrationBuilder.InsertData(
                table: "sys_config",
                columns: new[] { "Id", "Code", "CreatedTime", "CreatedUserId", "CreatedUserName", "GroupCode", "IsDeleted", "Name", "Remark", "Status", "SysFlag", "UpdatedTime", "UpdatedUserId", "UpdatedUserName", "Value" },
                values: new object[] { 142307070902365L, "DILON_CAPTCHA_OPEN", null, null, null, "DEFAULT", false, "登录验证码的开关", "true-打开，false-关闭", 0, "Y", null, null, null, "true" });

            migrationBuilder.InsertData(
                table: "sys_config",
                columns: new[] { "Id", "Code", "CreatedTime", "CreatedUserId", "CreatedUserName", "GroupCode", "IsDeleted", "Name", "Remark", "Status", "SysFlag", "UpdatedTime", "UpdatedUserId", "UpdatedUserName", "Value" },
                values: new object[] { 142307070902366L, "DILON_DRUID_USERNAME", null, null, null, "DEFAULT", false, "Druid监控登录账号", "Druid监控登录账号", 0, "Y", null, null, null, "superAdmin" });

            migrationBuilder.InsertData(
                table: "sys_config",
                columns: new[] { "Id", "Code", "CreatedTime", "CreatedUserId", "CreatedUserName", "GroupCode", "IsDeleted", "Name", "Remark", "Status", "SysFlag", "UpdatedTime", "UpdatedUserId", "UpdatedUserName", "Value" },
                values: new object[] { 142307070902367L, "DILON_DRUID_PASSWORD", null, null, null, "DEFAULT", false, "Druid监控界面登录密码", "Druid监控界面登录密码", 0, "Y", null, null, null, "123456" });

            migrationBuilder.InsertData(
                table: "sys_config",
                columns: new[] { "Id", "Code", "CreatedTime", "CreatedUserId", "CreatedUserName", "GroupCode", "IsDeleted", "Name", "Remark", "Status", "SysFlag", "UpdatedTime", "UpdatedUserId", "UpdatedUserName", "Value" },
                values: new object[] { 142307070902368L, "DILON_IP_GEO_API", null, null, null, "DEFAULT", false, "阿里云定位api接口地址", "阿里云定位api接口地址", 0, "Y", null, null, null, "http://api01.aliyun.venuscn.com/ip?ip=%s" });

            migrationBuilder.InsertData(
                table: "sys_config",
                columns: new[] { "Id", "Code", "CreatedTime", "CreatedUserId", "CreatedUserName", "GroupCode", "IsDeleted", "Name", "Remark", "Status", "SysFlag", "UpdatedTime", "UpdatedUserId", "UpdatedUserName", "Value" },
                values: new object[] { 142307070902369L, "DILON_IP_GEO_APP_CODE", null, null, null, "DEFAULT", false, "阿里云定位appCode", "阿里云定位appCode", 0, "Y", null, null, null, "461535aabeae4f34861884d392f5d452" });

            migrationBuilder.InsertData(
                table: "sys_config",
                columns: new[] { "Id", "Code", "CreatedTime", "CreatedUserId", "CreatedUserName", "GroupCode", "IsDeleted", "Name", "Remark", "Status", "SysFlag", "UpdatedTime", "UpdatedUserId", "UpdatedUserName", "Value" },
                values: new object[] { 142307070902370L, "DILON_ENABLE_OAUTH_LOGIN", null, null, null, "OAUTH", false, "Oauth用户登录的开关", "Oauth用户登录的开关", 0, "Y", null, null, null, "true" });

            migrationBuilder.InsertData(
                table: "sys_config",
                columns: new[] { "Id", "Code", "CreatedTime", "CreatedUserId", "CreatedUserName", "GroupCode", "IsDeleted", "Name", "Remark", "Status", "SysFlag", "UpdatedTime", "UpdatedUserId", "UpdatedUserName", "Value" },
                values: new object[] { 142307070902371L, "DILON_OAUTH_GITEE_CLIENT_ID", null, null, null, "OAUTH", false, "Oauth码云登录ClientId", "Oauth码云登录ClientId", 0, "Y", null, null, null, "你的clientId" });

            migrationBuilder.InsertData(
                table: "sys_config",
                columns: new[] { "Id", "Code", "CreatedTime", "CreatedUserId", "CreatedUserName", "GroupCode", "IsDeleted", "Name", "Remark", "Status", "SysFlag", "UpdatedTime", "UpdatedUserId", "UpdatedUserName", "Value" },
                values: new object[] { 142307070902372L, "DILON_OAUTH_GITEE_CLIENT_SECRET", null, null, null, "OAUTH", false, "Oauth码云登录ClientSecret", "Oauth码云登录ClientSecret", 0, "Y", null, null, null, "你的clientSecret" });

            migrationBuilder.InsertData(
                table: "sys_config",
                columns: new[] { "Id", "Code", "CreatedTime", "CreatedUserId", "CreatedUserName", "GroupCode", "IsDeleted", "Name", "Remark", "Status", "SysFlag", "UpdatedTime", "UpdatedUserId", "UpdatedUserName", "Value" },
                values: new object[] { 142307070902373L, "DILON_OAUTH_GITEE_REDIRECT_URI", null, null, null, "OAUTH", false, "Oauth码云登录回调地址", "Oauth码云登录回调地址", 0, "Y", null, null, null, "http://127.0.0.1:5566/oauth/callback/gitee" });

            migrationBuilder.InsertData(
                table: "sys_config",
                columns: new[] { "Id", "Code", "CreatedTime", "CreatedUserId", "CreatedUserName", "GroupCode", "IsDeleted", "Name", "Remark", "Status", "SysFlag", "UpdatedTime", "UpdatedUserId", "UpdatedUserName", "Value" },
                values: new object[] { 142307070902374L, "DILON_DEMO_ENV_FLAG", null, null, null, "DEFAULT", false, "演示环境", "演示环境的开关,true-打开，false-关闭，如果演示环境开启，则只能读数据不能写数据", 0, "Y", null, null, null, "false" });

            migrationBuilder.InsertData(
                table: "sys_menu",
                columns: new[] { "Id", "Application", "Code", "Component", "CreatedTime", "CreatedUserId", "CreatedUserName", "Icon", "IsDeleted", "Link", "Name", "OpenType", "Permission", "Pid", "Pids", "Redirect", "Remark", "Router", "Sort", "Status", "Type", "UpdatedTime", "UpdatedUserId", "UpdatedUserName", "Visible", "Weight" },
                values: new object[] { 142307070910563L, "manage", "auth_manager", "PageView", null, null, null, "safety-certificate", false, null, "权限管理", 0, null, 0L, "[0],", null, null, "/auth", 100, 0, 0, null, null, null, "Y", 1 });

            migrationBuilder.InsertData(
                table: "sys_menu",
                columns: new[] { "Id", "Application", "Code", "Component", "CreatedTime", "CreatedUserId", "CreatedUserName", "Icon", "IsDeleted", "Link", "Name", "OpenType", "Permission", "Pid", "Pids", "Redirect", "Remark", "Router", "Sort", "Status", "Type", "UpdatedTime", "UpdatedUserId", "UpdatedUserName", "Visible", "Weight" },
                values: new object[] { 142307070910564L, "manage", "sys_user_mgr", "system/user/index", null, null, null, null, false, null, "用户管理", 1, null, 142307070910563L, "[0],[142307070910563],", null, null, "/mgr_user", 100, 0, 1, null, null, null, "Y", 1 });

            migrationBuilder.InsertData(
                table: "sys_menu",
                columns: new[] { "Id", "Application", "Code", "Component", "CreatedTime", "CreatedUserId", "CreatedUserName", "Icon", "IsDeleted", "Link", "Name", "OpenType", "Permission", "Pid", "Pids", "Redirect", "Remark", "Router", "Sort", "Status", "Type", "UpdatedTime", "UpdatedUserId", "UpdatedUserName", "Visible", "Weight" },
                values: new object[] { 142307070910565L, "manage", "sys_user_mgr_page", null, null, null, null, null, false, null, "用户查询", 0, "sysUser:page", 142307070910564L, "[0],[142307070910563],[142307070910564],", null, null, null, 100, 0, 2, null, null, null, "Y", 1 });

            migrationBuilder.InsertData(
                table: "sys_menu",
                columns: new[] { "Id", "Application", "Code", "Component", "CreatedTime", "CreatedUserId", "CreatedUserName", "Icon", "IsDeleted", "Link", "Name", "OpenType", "Permission", "Pid", "Pids", "Redirect", "Remark", "Router", "Sort", "Status", "Type", "UpdatedTime", "UpdatedUserId", "UpdatedUserName", "Visible", "Weight" },
                values: new object[] { 142307070910566L, "manage", "sys_user_mgr_edit", null, null, null, null, null, false, null, "用户编辑", 0, "sysUser:edit", 142307070910564L, "[0],[142307070910563],[142307070910564],", null, null, null, 100, 0, 2, null, null, null, "Y", 1 });

            migrationBuilder.InsertData(
                table: "sys_menu",
                columns: new[] { "Id", "Application", "Code", "Component", "CreatedTime", "CreatedUserId", "CreatedUserName", "Icon", "IsDeleted", "Link", "Name", "OpenType", "Permission", "Pid", "Pids", "Redirect", "Remark", "Router", "Sort", "Status", "Type", "UpdatedTime", "UpdatedUserId", "UpdatedUserName", "Visible", "Weight" },
                values: new object[] { 142307070910567L, "manage", "sys_user_mgr_add", null, null, null, null, null, false, null, "用户增加", 0, "sysUser:add", 142307070910564L, "[0],[142307070910563],[142307070910564],", null, null, null, 100, 0, 2, null, null, null, "Y", 1 });

            migrationBuilder.InsertData(
                table: "sys_menu",
                columns: new[] { "Id", "Application", "Code", "Component", "CreatedTime", "CreatedUserId", "CreatedUserName", "Icon", "IsDeleted", "Link", "Name", "OpenType", "Permission", "Pid", "Pids", "Redirect", "Remark", "Router", "Sort", "Status", "Type", "UpdatedTime", "UpdatedUserId", "UpdatedUserName", "Visible", "Weight" },
                values: new object[] { 142307070910568L, "manage", "sys_user_mgr_delete", null, null, null, null, null, false, null, "用户删除", 0, "sysUser:delete", 142307070910564L, "[0],[142307070910563],[142307070910564],", null, null, null, 100, 0, 2, null, null, null, "Y", 1 });

            migrationBuilder.InsertData(
                table: "sys_menu",
                columns: new[] { "Id", "Application", "Code", "Component", "CreatedTime", "CreatedUserId", "CreatedUserName", "Icon", "IsDeleted", "Link", "Name", "OpenType", "Permission", "Pid", "Pids", "Redirect", "Remark", "Router", "Sort", "Status", "Type", "UpdatedTime", "UpdatedUserId", "UpdatedUserName", "Visible", "Weight" },
                values: new object[] { 142307070910569L, "manage", "sys_user_mgr_detail", null, null, null, null, null, false, null, "用户详情", 0, "sysUser:detail", 142307070910564L, "[0],[142307070910563],[142307070910564],", null, null, null, 100, 0, 2, null, null, null, "Y", 1 });

            migrationBuilder.InsertData(
                table: "sys_menu",
                columns: new[] { "Id", "Application", "Code", "Component", "CreatedTime", "CreatedUserId", "CreatedUserName", "Icon", "IsDeleted", "Link", "Name", "OpenType", "Permission", "Pid", "Pids", "Redirect", "Remark", "Router", "Sort", "Status", "Type", "UpdatedTime", "UpdatedUserId", "UpdatedUserName", "Visible", "Weight" },
                values: new object[] { 142307070910570L, "manage", "sys_user_mgr_export", null, null, null, null, null, false, null, "用户导出", 0, "sysUser:export", 142307070910564L, "[0],[142307070910563],[142307070910564],", null, null, null, 100, 0, 2, null, null, null, "Y", 1 });

            migrationBuilder.InsertData(
                table: "sys_menu",
                columns: new[] { "Id", "Application", "Code", "Component", "CreatedTime", "CreatedUserId", "CreatedUserName", "Icon", "IsDeleted", "Link", "Name", "OpenType", "Permission", "Pid", "Pids", "Redirect", "Remark", "Router", "Sort", "Status", "Type", "UpdatedTime", "UpdatedUserId", "UpdatedUserName", "Visible", "Weight" },
                values: new object[] { 142307070910571L, "manage", "sys_user_mgr_selector", null, null, null, null, null, false, null, "用户选择器", 0, "sysUser:selector", 142307070910564L, "[0],[142307070910563],[142307070910564],", null, null, null, 100, 0, 2, null, null, null, "Y", 1 });

            migrationBuilder.InsertData(
                table: "sys_menu",
                columns: new[] { "Id", "Application", "Code", "Component", "CreatedTime", "CreatedUserId", "CreatedUserName", "Icon", "IsDeleted", "Link", "Name", "OpenType", "Permission", "Pid", "Pids", "Redirect", "Remark", "Router", "Sort", "Status", "Type", "UpdatedTime", "UpdatedUserId", "UpdatedUserName", "Visible", "Weight" },
                values: new object[] { 142307070910572L, "manage", "sys_user_mgr_grant_role", null, null, null, null, null, false, null, "用户授权角色", 0, "sysUser:grantRole", 142307070910564L, "[0],[142307070910563],[142307070910564],", null, null, null, 100, 0, 2, null, null, null, "Y", 1 });

            migrationBuilder.InsertData(
                table: "sys_menu",
                columns: new[] { "Id", "Application", "Code", "Component", "CreatedTime", "CreatedUserId", "CreatedUserName", "Icon", "IsDeleted", "Link", "Name", "OpenType", "Permission", "Pid", "Pids", "Redirect", "Remark", "Router", "Sort", "Status", "Type", "UpdatedTime", "UpdatedUserId", "UpdatedUserName", "Visible", "Weight" },
                values: new object[] { 142307070910573L, "manage", "sys_user_mgr_own_role", null, null, null, null, null, false, null, "用户拥有角色", 0, "sysUser:ownRole", 142307070910564L, "[0],[142307070910563],[142307070910564],", null, null, null, 100, 0, 2, null, null, null, "Y", 1 });

            migrationBuilder.InsertData(
                table: "sys_menu",
                columns: new[] { "Id", "Application", "Code", "Component", "CreatedTime", "CreatedUserId", "CreatedUserName", "Icon", "IsDeleted", "Link", "Name", "OpenType", "Permission", "Pid", "Pids", "Redirect", "Remark", "Router", "Sort", "Status", "Type", "UpdatedTime", "UpdatedUserId", "UpdatedUserName", "Visible", "Weight" },
                values: new object[] { 142307070910574L, "manage", "sys_user_mgr_grant_data", null, null, null, null, null, false, null, "用户授权数据", 0, "sysUser:grantData", 142307070910564L, "[0],[142307070910563],[142307070910564],", null, null, null, 100, 0, 2, null, null, null, "Y", 1 });

            migrationBuilder.InsertData(
                table: "sys_menu",
                columns: new[] { "Id", "Application", "Code", "Component", "CreatedTime", "CreatedUserId", "CreatedUserName", "Icon", "IsDeleted", "Link", "Name", "OpenType", "Permission", "Pid", "Pids", "Redirect", "Remark", "Router", "Sort", "Status", "Type", "UpdatedTime", "UpdatedUserId", "UpdatedUserName", "Visible", "Weight" },
                values: new object[] { 142307070910575L, "manage", "sys_user_mgr_own_data", null, null, null, null, null, false, null, "用户拥有数据", 0, "sysUser:ownData", 142307070910564L, "[0],[142307070910563],[142307070910564],", null, null, null, 100, 0, 2, null, null, null, "Y", 1 });

            migrationBuilder.InsertData(
                table: "sys_menu",
                columns: new[] { "Id", "Application", "Code", "Component", "CreatedTime", "CreatedUserId", "CreatedUserName", "Icon", "IsDeleted", "Link", "Name", "OpenType", "Permission", "Pid", "Pids", "Redirect", "Remark", "Router", "Sort", "Status", "Type", "UpdatedTime", "UpdatedUserId", "UpdatedUserName", "Visible", "Weight" },
                values: new object[] { 142307070910576L, "manage", "sys_user_mgr_update_info", null, null, null, null, null, false, null, "用户更新信息", 0, "sysUser:updateInfo", 142307070910564L, "[0],[142307070910563],[142307070910564],", null, null, null, 100, 0, 2, null, null, null, "Y", 1 });

            migrationBuilder.InsertData(
                table: "sys_menu",
                columns: new[] { "Id", "Application", "Code", "Component", "CreatedTime", "CreatedUserId", "CreatedUserName", "Icon", "IsDeleted", "Link", "Name", "OpenType", "Permission", "Pid", "Pids", "Redirect", "Remark", "Router", "Sort", "Status", "Type", "UpdatedTime", "UpdatedUserId", "UpdatedUserName", "Visible", "Weight" },
                values: new object[] { 142307070910577L, "manage", "sys_user_mgr_update_pwd", null, null, null, null, null, false, null, "用户修改密码", 0, "sysUser:updatePwd", 142307070910564L, "[0],[142307070910563],[142307070910564],", null, null, null, 100, 0, 2, null, null, null, "Y", 1 });

            migrationBuilder.InsertData(
                table: "sys_menu",
                columns: new[] { "Id", "Application", "Code", "Component", "CreatedTime", "CreatedUserId", "CreatedUserName", "Icon", "IsDeleted", "Link", "Name", "OpenType", "Permission", "Pid", "Pids", "Redirect", "Remark", "Router", "Sort", "Status", "Type", "UpdatedTime", "UpdatedUserId", "UpdatedUserName", "Visible", "Weight" },
                values: new object[] { 142307070910578L, "manage", "sys_user_mgr_change_status", null, null, null, null, null, false, null, "用户修改状态", 0, "sysUser:changeStatus", 142307070910564L, "[0],[142307070910563],[142307070910564],", null, null, null, 100, 0, 2, null, null, null, "Y", 1 });

            migrationBuilder.InsertData(
                table: "sys_menu",
                columns: new[] { "Id", "Application", "Code", "Component", "CreatedTime", "CreatedUserId", "CreatedUserName", "Icon", "IsDeleted", "Link", "Name", "OpenType", "Permission", "Pid", "Pids", "Redirect", "Remark", "Router", "Sort", "Status", "Type", "UpdatedTime", "UpdatedUserId", "UpdatedUserName", "Visible", "Weight" },
                values: new object[] { 142307070910579L, "manage", "sys_user_mgr_update_avatar", null, null, null, null, null, false, null, "用户修改头像", 0, "sysUser:updateAvatar", 142307070910564L, "[0],[142307070910563],[142307070910564],", null, null, null, 100, 0, 2, null, null, null, "Y", 1 });

            migrationBuilder.InsertData(
                table: "sys_menu",
                columns: new[] { "Id", "Application", "Code", "Component", "CreatedTime", "CreatedUserId", "CreatedUserName", "Icon", "IsDeleted", "Link", "Name", "OpenType", "Permission", "Pid", "Pids", "Redirect", "Remark", "Router", "Sort", "Status", "Type", "UpdatedTime", "UpdatedUserId", "UpdatedUserName", "Visible", "Weight" },
                values: new object[] { 142307070910580L, "manage", "sys_user_mgr_reset_pwd", null, null, null, null, null, false, null, "用户重置密码", 0, "sysUser:resetPwd", 142307070910564L, "[0],[142307070910563],[142307070910564],", null, null, null, 100, 0, 2, null, null, null, "Y", 1 });

            migrationBuilder.InsertData(
                table: "sys_menu",
                columns: new[] { "Id", "Application", "Code", "Component", "CreatedTime", "CreatedUserId", "CreatedUserName", "Icon", "IsDeleted", "Link", "Name", "OpenType", "Permission", "Pid", "Pids", "Redirect", "Remark", "Router", "Sort", "Status", "Type", "UpdatedTime", "UpdatedUserId", "UpdatedUserName", "Visible", "Weight" },
                values: new object[] { 142307070914633L, "system", "sys_platform", "PageView", null, null, null, "safety-certificate", false, null, "平台管理", 0, null, 0L, "[0],", null, null, "/platform", 100, 0, 0, null, null, null, "Y", 1 });

            migrationBuilder.InsertData(
                table: "sys_menu",
                columns: new[] { "Id", "Application", "Code", "Component", "CreatedTime", "CreatedUserId", "CreatedUserName", "Icon", "IsDeleted", "Link", "Name", "OpenType", "Permission", "Pid", "Pids", "Redirect", "Remark", "Router", "Sort", "Status", "Type", "UpdatedTime", "UpdatedUserId", "UpdatedUserName", "Visible", "Weight" },
                values: new object[] { 142307070914634L, "system", "sys_app_mgr", "system/app/index", null, null, null, null, false, null, "应用管理", 1, null, 142307070914633L, "[0],[142307070914633],", null, null, "/app", 100, 0, 1, null, null, null, "Y", 1 });

            migrationBuilder.InsertData(
                table: "sys_menu",
                columns: new[] { "Id", "Application", "Code", "Component", "CreatedTime", "CreatedUserId", "CreatedUserName", "Icon", "IsDeleted", "Link", "Name", "OpenType", "Permission", "Pid", "Pids", "Redirect", "Remark", "Router", "Sort", "Status", "Type", "UpdatedTime", "UpdatedUserId", "UpdatedUserName", "Visible", "Weight" },
                values: new object[] { 142307070914635L, "system", "sys_app_mgr_page", null, null, null, null, null, false, null, "应用查询", 0, "sysApp:page", 142307070914634L, "[0],[142307070914633],[142307070914634],", null, null, null, 100, 0, 2, null, null, null, "Y", 1 });

            migrationBuilder.InsertData(
                table: "sys_menu",
                columns: new[] { "Id", "Application", "Code", "Component", "CreatedTime", "CreatedUserId", "CreatedUserName", "Icon", "IsDeleted", "Link", "Name", "OpenType", "Permission", "Pid", "Pids", "Redirect", "Remark", "Router", "Sort", "Status", "Type", "UpdatedTime", "UpdatedUserId", "UpdatedUserName", "Visible", "Weight" },
                values: new object[] { 142307070914636L, "system", "sys_app_mgr_list", null, null, null, null, null, false, null, "应用列表", 0, "sysApp:list", 142307070914634L, "[0],[142307070914633],[142307070914634],", null, null, null, 100, 0, 2, null, null, null, "Y", 1 });

            migrationBuilder.InsertData(
                table: "sys_menu",
                columns: new[] { "Id", "Application", "Code", "Component", "CreatedTime", "CreatedUserId", "CreatedUserName", "Icon", "IsDeleted", "Link", "Name", "OpenType", "Permission", "Pid", "Pids", "Redirect", "Remark", "Router", "Sort", "Status", "Type", "UpdatedTime", "UpdatedUserId", "UpdatedUserName", "Visible", "Weight" },
                values: new object[] { 142307070914637L, "system", "sys_app_mgr_add", null, null, null, null, null, false, null, "应用增加", 0, "sysApp:add", 142307070914634L, "[0],[142307070914633],[142307070914634],", null, null, null, 100, 0, 2, null, null, null, "Y", 1 });

            migrationBuilder.InsertData(
                table: "sys_menu",
                columns: new[] { "Id", "Application", "Code", "Component", "CreatedTime", "CreatedUserId", "CreatedUserName", "Icon", "IsDeleted", "Link", "Name", "OpenType", "Permission", "Pid", "Pids", "Redirect", "Remark", "Router", "Sort", "Status", "Type", "UpdatedTime", "UpdatedUserId", "UpdatedUserName", "Visible", "Weight" },
                values: new object[] { 142307070914638L, "system", "sys_app_mgr_edit", null, null, null, null, null, false, null, "应用编辑", 0, "sysApp:edit", 142307070914634L, "[0],[142307070914633],[142307070914634],", null, null, null, 100, 0, 2, null, null, null, "Y", 1 });

            migrationBuilder.InsertData(
                table: "sys_menu",
                columns: new[] { "Id", "Application", "Code", "Component", "CreatedTime", "CreatedUserId", "CreatedUserName", "Icon", "IsDeleted", "Link", "Name", "OpenType", "Permission", "Pid", "Pids", "Redirect", "Remark", "Router", "Sort", "Status", "Type", "UpdatedTime", "UpdatedUserId", "UpdatedUserName", "Visible", "Weight" },
                values: new object[] { 142307070914639L, "system", "sys_app_mgr_delete", null, null, null, null, null, false, null, "应用删除", 0, "sysApp:delete", 142307070914634L, "[0],[142307070914633],[142307070914634],", null, null, null, 100, 0, 2, null, null, null, "Y", 1 });

            migrationBuilder.InsertData(
                table: "sys_menu",
                columns: new[] { "Id", "Application", "Code", "Component", "CreatedTime", "CreatedUserId", "CreatedUserName", "Icon", "IsDeleted", "Link", "Name", "OpenType", "Permission", "Pid", "Pids", "Redirect", "Remark", "Router", "Sort", "Status", "Type", "UpdatedTime", "UpdatedUserId", "UpdatedUserName", "Visible", "Weight" },
                values: new object[] { 142307070914640L, "system", "sys_app_mgr_detail", null, null, null, null, null, false, null, "应用详情", 0, "sysApp:detail", 142307070914634L, "[0],[142307070914633],[142307070914634],", null, null, null, 100, 0, 2, null, null, null, "Y", 1 });

            migrationBuilder.InsertData(
                table: "sys_menu",
                columns: new[] { "Id", "Application", "Code", "Component", "CreatedTime", "CreatedUserId", "CreatedUserName", "Icon", "IsDeleted", "Link", "Name", "OpenType", "Permission", "Pid", "Pids", "Redirect", "Remark", "Router", "Sort", "Status", "Type", "UpdatedTime", "UpdatedUserId", "UpdatedUserName", "Visible", "Weight" },
                values: new object[] { 142307070914641L, "system", "sys_app_mgr_set_as_default", null, null, null, null, null, false, null, "设为默认应用", 0, "sysApp:setAsDefault", 142307070914634L, "[0],[142307070914633],[142307070914634],", null, null, null, 100, 0, 2, null, null, null, "Y", 1 });

            migrationBuilder.InsertData(
                table: "sys_menu",
                columns: new[] { "Id", "Application", "Code", "Component", "CreatedTime", "CreatedUserId", "CreatedUserName", "Icon", "IsDeleted", "Link", "Name", "OpenType", "Permission", "Pid", "Pids", "Redirect", "Remark", "Router", "Sort", "Status", "Type", "UpdatedTime", "UpdatedUserId", "UpdatedUserName", "Visible", "Weight" },
                values: new object[] { 142307070914642L, "system", "sys_menu_mgr", "system/menu/index", null, null, null, null, false, null, "菜单管理", 1, null, 142307070914633L, "[0],[142307070914633],", null, null, "/menu", 100, 0, 1, null, null, null, "Y", 1 });

            migrationBuilder.InsertData(
                table: "sys_menu",
                columns: new[] { "Id", "Application", "Code", "Component", "CreatedTime", "CreatedUserId", "CreatedUserName", "Icon", "IsDeleted", "Link", "Name", "OpenType", "Permission", "Pid", "Pids", "Redirect", "Remark", "Router", "Sort", "Status", "Type", "UpdatedTime", "UpdatedUserId", "UpdatedUserName", "Visible", "Weight" },
                values: new object[] { 142307070914643L, "system", "sys_menu_mgr_list", null, null, null, null, null, false, null, "菜单列表", 0, "sysMenu:list", 142307070914642L, "[0],[142307070914633],[142307070914642],", null, null, null, 100, 0, 2, null, null, null, "Y", 1 });

            migrationBuilder.InsertData(
                table: "sys_menu",
                columns: new[] { "Id", "Application", "Code", "Component", "CreatedTime", "CreatedUserId", "CreatedUserName", "Icon", "IsDeleted", "Link", "Name", "OpenType", "Permission", "Pid", "Pids", "Redirect", "Remark", "Router", "Sort", "Status", "Type", "UpdatedTime", "UpdatedUserId", "UpdatedUserName", "Visible", "Weight" },
                values: new object[] { 142307070914644L, "system", "sys_menu_mgr_add", null, null, null, null, null, false, null, "菜单增加", 0, "sysMenu:add", 142307070914642L, "[0],[142307070914633],[142307070914642],", null, null, null, 100, 0, 2, null, null, null, "Y", 1 });

            migrationBuilder.InsertData(
                table: "sys_menu",
                columns: new[] { "Id", "Application", "Code", "Component", "CreatedTime", "CreatedUserId", "CreatedUserName", "Icon", "IsDeleted", "Link", "Name", "OpenType", "Permission", "Pid", "Pids", "Redirect", "Remark", "Router", "Sort", "Status", "Type", "UpdatedTime", "UpdatedUserId", "UpdatedUserName", "Visible", "Weight" },
                values: new object[] { 142307070914645L, "system", "sys_menu_mgr_edit", null, null, null, null, null, false, null, "菜单编辑", 0, "sysMenu:edit", 142307070914642L, "[0],[142307070914633],[142307070914642],", null, null, null, 100, 0, 2, null, null, null, "Y", 1 });

            migrationBuilder.InsertData(
                table: "sys_menu",
                columns: new[] { "Id", "Application", "Code", "Component", "CreatedTime", "CreatedUserId", "CreatedUserName", "Icon", "IsDeleted", "Link", "Name", "OpenType", "Permission", "Pid", "Pids", "Redirect", "Remark", "Router", "Sort", "Status", "Type", "UpdatedTime", "UpdatedUserId", "UpdatedUserName", "Visible", "Weight" },
                values: new object[] { 142307070914646L, "system", "sys_menu_mgr_delete", null, null, null, null, null, false, null, "菜单删除", 0, "sysMenu:delete", 142307070914642L, "[0],[142307070914633],[142307070914642],", null, null, null, 100, 0, 2, null, null, null, "Y", 1 });

            migrationBuilder.InsertData(
                table: "sys_menu",
                columns: new[] { "Id", "Application", "Code", "Component", "CreatedTime", "CreatedUserId", "CreatedUserName", "Icon", "IsDeleted", "Link", "Name", "OpenType", "Permission", "Pid", "Pids", "Redirect", "Remark", "Router", "Sort", "Status", "Type", "UpdatedTime", "UpdatedUserId", "UpdatedUserName", "Visible", "Weight" },
                values: new object[] { 142307070914647L, "system", "sys_menu_mgr_detail", null, null, null, null, null, false, null, "菜单详情", 0, "sysMenu:detail", 142307070914642L, "[0],[142307070914633],[142307070914642],", null, null, null, 100, 0, 2, null, null, null, "Y", 1 });

            migrationBuilder.InsertData(
                table: "sys_menu",
                columns: new[] { "Id", "Application", "Code", "Component", "CreatedTime", "CreatedUserId", "CreatedUserName", "Icon", "IsDeleted", "Link", "Name", "OpenType", "Permission", "Pid", "Pids", "Redirect", "Remark", "Router", "Sort", "Status", "Type", "UpdatedTime", "UpdatedUserId", "UpdatedUserName", "Visible", "Weight" },
                values: new object[] { 142307070914648L, "manage", "sys_menu_mgr_grant_tree", null, null, null, null, null, false, null, "菜单授权树", 0, "sysMenu:treeForGrant", 142307070914651L, "[0],[142307070910563],[142307070914651],", null, null, null, 100, 0, 2, null, null, null, "Y", 1 });

            migrationBuilder.InsertData(
                table: "sys_menu",
                columns: new[] { "Id", "Application", "Code", "Component", "CreatedTime", "CreatedUserId", "CreatedUserName", "Icon", "IsDeleted", "Link", "Name", "OpenType", "Permission", "Pid", "Pids", "Redirect", "Remark", "Router", "Sort", "Status", "Type", "UpdatedTime", "UpdatedUserId", "UpdatedUserName", "Visible", "Weight" },
                values: new object[] { 142307070914649L, "manage", "sys_menu_mgr_tree", null, null, null, null, null, false, null, "菜单树", 0, "sysMenu:tree", 142307070914651L, "[0],[142307070910563],[142307070914651],", null, null, null, 100, 0, 2, null, null, null, "Y", 1 });

            migrationBuilder.InsertData(
                table: "sys_menu",
                columns: new[] { "Id", "Application", "Code", "Component", "CreatedTime", "CreatedUserId", "CreatedUserName", "Icon", "IsDeleted", "Link", "Name", "OpenType", "Permission", "Pid", "Pids", "Redirect", "Remark", "Router", "Sort", "Status", "Type", "UpdatedTime", "UpdatedUserId", "UpdatedUserName", "Visible", "Weight" },
                values: new object[] { 142307070914650L, "system", "sys_menu_mgr_change", null, null, null, null, null, false, null, "菜单切换", 0, "sysMenu:change", 142307070914642L, "[0],[142307070914633],[142307070914642],", null, null, null, 100, 0, 2, null, null, null, "Y", 1 });

            migrationBuilder.InsertData(
                table: "sys_menu",
                columns: new[] { "Id", "Application", "Code", "Component", "CreatedTime", "CreatedUserId", "CreatedUserName", "Icon", "IsDeleted", "Link", "Name", "OpenType", "Permission", "Pid", "Pids", "Redirect", "Remark", "Router", "Sort", "Status", "Type", "UpdatedTime", "UpdatedUserId", "UpdatedUserName", "Visible", "Weight" },
                values: new object[] { 142307070914651L, "manage", "sys_role_mgr", "system/role/index", null, null, null, null, false, null, "角色管理", 1, null, 142307070910563L, "[0],[142307070910563],", null, null, "/role", 100, 0, 1, null, null, null, "Y", 1 });

            migrationBuilder.InsertData(
                table: "sys_menu",
                columns: new[] { "Id", "Application", "Code", "Component", "CreatedTime", "CreatedUserId", "CreatedUserName", "Icon", "IsDeleted", "Link", "Name", "OpenType", "Permission", "Pid", "Pids", "Redirect", "Remark", "Router", "Sort", "Status", "Type", "UpdatedTime", "UpdatedUserId", "UpdatedUserName", "Visible", "Weight" },
                values: new object[] { 142307070914652L, "manage", "sys_role_mgr_page", null, null, null, null, null, false, null, "角色查询", 0, "sysRole:page", 142307070914651L, "[0],[142307070910563],[142307070914651],", null, null, null, 100, 0, 2, null, null, null, "Y", 1 });

            migrationBuilder.InsertData(
                table: "sys_menu",
                columns: new[] { "Id", "Application", "Code", "Component", "CreatedTime", "CreatedUserId", "CreatedUserName", "Icon", "IsDeleted", "Link", "Name", "OpenType", "Permission", "Pid", "Pids", "Redirect", "Remark", "Router", "Sort", "Status", "Type", "UpdatedTime", "UpdatedUserId", "UpdatedUserName", "Visible", "Weight" },
                values: new object[] { 142307070914653L, "manage", "sys_role_mgr_add", null, null, null, null, null, false, null, "角色增加", 0, "sysRole:add", 142307070914651L, "[0],[142307070910563],[142307070914651],", null, null, null, 100, 0, 2, null, null, null, "Y", 1 });

            migrationBuilder.InsertData(
                table: "sys_menu",
                columns: new[] { "Id", "Application", "Code", "Component", "CreatedTime", "CreatedUserId", "CreatedUserName", "Icon", "IsDeleted", "Link", "Name", "OpenType", "Permission", "Pid", "Pids", "Redirect", "Remark", "Router", "Sort", "Status", "Type", "UpdatedTime", "UpdatedUserId", "UpdatedUserName", "Visible", "Weight" },
                values: new object[] { 142307070914654L, "manage", "sys_role_mgr_edit", null, null, null, null, null, false, null, "角色编辑", 0, "sysRole:edit", 142307070914651L, "[0],[142307070910563],[142307070914651],", null, null, null, 100, 0, 2, null, null, null, "Y", 1 });

            migrationBuilder.InsertData(
                table: "sys_menu",
                columns: new[] { "Id", "Application", "Code", "Component", "CreatedTime", "CreatedUserId", "CreatedUserName", "Icon", "IsDeleted", "Link", "Name", "OpenType", "Permission", "Pid", "Pids", "Redirect", "Remark", "Router", "Sort", "Status", "Type", "UpdatedTime", "UpdatedUserId", "UpdatedUserName", "Visible", "Weight" },
                values: new object[] { 142307070914655L, "manage", "sys_role_mgr_delete", null, null, null, null, null, false, null, "角色删除", 0, "sysRole:delete", 142307070914651L, "[0],[142307070910563],[142307070914651],", null, null, null, 100, 0, 2, null, null, null, "Y", 1 });

            migrationBuilder.InsertData(
                table: "sys_menu",
                columns: new[] { "Id", "Application", "Code", "Component", "CreatedTime", "CreatedUserId", "CreatedUserName", "Icon", "IsDeleted", "Link", "Name", "OpenType", "Permission", "Pid", "Pids", "Redirect", "Remark", "Router", "Sort", "Status", "Type", "UpdatedTime", "UpdatedUserId", "UpdatedUserName", "Visible", "Weight" },
                values: new object[] { 142307070914656L, "manage", "sys_role_mgr_detail", null, null, null, null, null, false, null, "角色详情", 0, "sysRole:detail", 142307070914651L, "[0],[142307070910563],[142307070914651],", null, null, null, 100, 0, 2, null, null, null, "Y", 1 });

            migrationBuilder.InsertData(
                table: "sys_menu",
                columns: new[] { "Id", "Application", "Code", "Component", "CreatedTime", "CreatedUserId", "CreatedUserName", "Icon", "IsDeleted", "Link", "Name", "OpenType", "Permission", "Pid", "Pids", "Redirect", "Remark", "Router", "Sort", "Status", "Type", "UpdatedTime", "UpdatedUserId", "UpdatedUserName", "Visible", "Weight" },
                values: new object[] { 142307070914657L, "manage", "sys_role_mgr_drop_down", null, null, null, null, null, false, null, "角色下拉", 0, "sysRole:dropDown", 142307070914651L, "[0],[142307070910563],[142307070914651],", null, null, null, 100, 0, 2, null, null, null, "Y", 1 });

            migrationBuilder.InsertData(
                table: "sys_menu",
                columns: new[] { "Id", "Application", "Code", "Component", "CreatedTime", "CreatedUserId", "CreatedUserName", "Icon", "IsDeleted", "Link", "Name", "OpenType", "Permission", "Pid", "Pids", "Redirect", "Remark", "Router", "Sort", "Status", "Type", "UpdatedTime", "UpdatedUserId", "UpdatedUserName", "Visible", "Weight" },
                values: new object[] { 142307070914658L, "manage", "sys_role_mgr_grant_menu", null, null, null, null, null, false, null, "角色授权菜单", 0, "sysRole:grantMenu", 142307070914651L, "[0],[142307070910563],[142307070914651],", null, null, null, 100, 0, 2, null, null, null, "Y", 1 });

            migrationBuilder.InsertData(
                table: "sys_menu",
                columns: new[] { "Id", "Application", "Code", "Component", "CreatedTime", "CreatedUserId", "CreatedUserName", "Icon", "IsDeleted", "Link", "Name", "OpenType", "Permission", "Pid", "Pids", "Redirect", "Remark", "Router", "Sort", "Status", "Type", "UpdatedTime", "UpdatedUserId", "UpdatedUserName", "Visible", "Weight" },
                values: new object[] { 142307070914659L, "manage", "sys_role_mgr_own_menu", null, null, null, null, null, false, null, "角色拥有菜单", 0, "sysRole:ownMenu", 142307070914651L, "[0],[142307070910563],[142307070914651],", null, null, null, 100, 0, 2, null, null, null, "Y", 1 });

            migrationBuilder.InsertData(
                table: "sys_menu",
                columns: new[] { "Id", "Application", "Code", "Component", "CreatedTime", "CreatedUserId", "CreatedUserName", "Icon", "IsDeleted", "Link", "Name", "OpenType", "Permission", "Pid", "Pids", "Redirect", "Remark", "Router", "Sort", "Status", "Type", "UpdatedTime", "UpdatedUserId", "UpdatedUserName", "Visible", "Weight" },
                values: new object[] { 142307070914660L, "manage", "sys_role_mgr_grant_data", null, null, null, null, null, false, null, "角色授权数据", 0, "sysRole:grantData", 142307070914651L, "[0],[142307070910563],[142307070914651],", null, null, null, 100, 0, 2, null, null, null, "Y", 1 });

            migrationBuilder.InsertData(
                table: "sys_menu",
                columns: new[] { "Id", "Application", "Code", "Component", "CreatedTime", "CreatedUserId", "CreatedUserName", "Icon", "IsDeleted", "Link", "Name", "OpenType", "Permission", "Pid", "Pids", "Redirect", "Remark", "Router", "Sort", "Status", "Type", "UpdatedTime", "UpdatedUserId", "UpdatedUserName", "Visible", "Weight" },
                values: new object[] { 142307070914661L, "manage", "sys_role_mgr_own_data", null, null, null, null, null, false, null, "角色拥有数据", 0, "sysRole:ownData", 142307070914651L, "[0],[142307070910563],[142307070914651],", null, null, null, 100, 0, 2, null, null, null, "Y", 1 });

            migrationBuilder.InsertData(
                table: "sys_menu",
                columns: new[] { "Id", "Application", "Code", "Component", "CreatedTime", "CreatedUserId", "CreatedUserName", "Icon", "IsDeleted", "Link", "Name", "OpenType", "Permission", "Pid", "Pids", "Redirect", "Remark", "Router", "Sort", "Status", "Type", "UpdatedTime", "UpdatedUserId", "UpdatedUserName", "Visible", "Weight" },
                values: new object[] { 142307070918756L, "manage", "sys_file_mgr", "PageView", null, null, null, "file", false, null, "文件管理", 0, null, 0L, "[0],", null, null, "/file", 100, 0, 0, null, null, null, "Y", 1 });

            migrationBuilder.InsertData(
                table: "sys_menu",
                columns: new[] { "Id", "Application", "Code", "Component", "CreatedTime", "CreatedUserId", "CreatedUserName", "Icon", "IsDeleted", "Link", "Name", "OpenType", "Permission", "Pid", "Pids", "Redirect", "Remark", "Router", "Sort", "Status", "Type", "UpdatedTime", "UpdatedUserId", "UpdatedUserName", "Visible", "Weight" },
                values: new object[] { 142307070918757L, "manage", "sys_file_mgr_sys_file", "system/file/index", null, null, null, null, false, null, "系统文件", 1, null, 142307070918756L, "[0],[142307070918756],", null, null, "/file", 100, 0, 1, null, null, null, "Y", 1 });

            migrationBuilder.InsertData(
                table: "sys_menu",
                columns: new[] { "Id", "Application", "Code", "Component", "CreatedTime", "CreatedUserId", "CreatedUserName", "Icon", "IsDeleted", "Link", "Name", "OpenType", "Permission", "Pid", "Pids", "Redirect", "Remark", "Router", "Sort", "Status", "Type", "UpdatedTime", "UpdatedUserId", "UpdatedUserName", "Visible", "Weight" },
                values: new object[] { 142307070918758L, "manage", "sys_file_mgr_sys_file_page", null, null, null, null, null, false, null, "文件查询", 0, "sysFileInfo:page", 142307070918757L, "[0],[142307070918756],[142307070918757],", null, null, null, 100, 0, 2, null, null, null, "Y", 1 });

            migrationBuilder.InsertData(
                table: "sys_menu",
                columns: new[] { "Id", "Application", "Code", "Component", "CreatedTime", "CreatedUserId", "CreatedUserName", "Icon", "IsDeleted", "Link", "Name", "OpenType", "Permission", "Pid", "Pids", "Redirect", "Remark", "Router", "Sort", "Status", "Type", "UpdatedTime", "UpdatedUserId", "UpdatedUserName", "Visible", "Weight" },
                values: new object[] { 142307070918759L, "manage", "sys_file_mgr_sys_file_list", null, null, null, null, null, false, null, "文件列表", 0, "sysFileInfo:list", 142307070918757L, "[0],[142307070918756],[142307070918757],", null, null, null, 100, 0, 2, null, null, null, "Y", 1 });

            migrationBuilder.InsertData(
                table: "sys_menu",
                columns: new[] { "Id", "Application", "Code", "Component", "CreatedTime", "CreatedUserId", "CreatedUserName", "Icon", "IsDeleted", "Link", "Name", "OpenType", "Permission", "Pid", "Pids", "Redirect", "Remark", "Router", "Sort", "Status", "Type", "UpdatedTime", "UpdatedUserId", "UpdatedUserName", "Visible", "Weight" },
                values: new object[] { 142307070918760L, "manage", "sys_file_mgr_sys_file_delete", null, null, null, null, null, false, null, "文件删除", 0, "sysFileInfo:delete", 142307070918757L, "[0],[142307070918756],[142307070918757],", null, null, null, 100, 0, 2, null, null, null, "Y", 1 });

            migrationBuilder.InsertData(
                table: "sys_menu",
                columns: new[] { "Id", "Application", "Code", "Component", "CreatedTime", "CreatedUserId", "CreatedUserName", "Icon", "IsDeleted", "Link", "Name", "OpenType", "Permission", "Pid", "Pids", "Redirect", "Remark", "Router", "Sort", "Status", "Type", "UpdatedTime", "UpdatedUserId", "UpdatedUserName", "Visible", "Weight" },
                values: new object[] { 142307070918761L, "manage", "sys_file_mgr_sys_file_detail", null, null, null, null, null, false, null, "文件详情", 0, "sysFileInfo:detail", 142307070918757L, "[0],[142307070918756],[142307070918757],", null, null, null, 100, 0, 2, null, null, null, "Y", 1 });

            migrationBuilder.InsertData(
                table: "sys_menu",
                columns: new[] { "Id", "Application", "Code", "Component", "CreatedTime", "CreatedUserId", "CreatedUserName", "Icon", "IsDeleted", "Link", "Name", "OpenType", "Permission", "Pid", "Pids", "Redirect", "Remark", "Router", "Sort", "Status", "Type", "UpdatedTime", "UpdatedUserId", "UpdatedUserName", "Visible", "Weight" },
                values: new object[] { 142307070918762L, "manage", "sys_file_mgr_sys_file_upload", null, null, null, null, null, false, null, "文件上传", 0, "sysFileInfo:upload", 142307070918757L, "[0],[142307070918756],[142307070918757],", null, null, null, 100, 0, 2, null, null, null, "Y", 1 });

            migrationBuilder.InsertData(
                table: "sys_menu",
                columns: new[] { "Id", "Application", "Code", "Component", "CreatedTime", "CreatedUserId", "CreatedUserName", "Icon", "IsDeleted", "Link", "Name", "OpenType", "Permission", "Pid", "Pids", "Redirect", "Remark", "Router", "Sort", "Status", "Type", "UpdatedTime", "UpdatedUserId", "UpdatedUserName", "Visible", "Weight" },
                values: new object[] { 142307070918764L, "manage", "sys_file_mgr_sys_file_preview", null, null, null, null, null, false, null, "图片预览", 0, "sysFileInfo:preview", 142307070918757L, "[0],[142307070918756],[142307070918757],", null, null, null, 100, 0, 2, null, null, null, "Y", 1 });

            migrationBuilder.InsertData(
                table: "sys_menu",
                columns: new[] { "Id", "Application", "Code", "Component", "CreatedTime", "CreatedUserId", "CreatedUserName", "Icon", "IsDeleted", "Link", "Name", "OpenType", "Permission", "Pid", "Pids", "Redirect", "Remark", "Router", "Sort", "Status", "Type", "UpdatedTime", "UpdatedUserId", "UpdatedUserName", "Visible", "Weight" },
                values: new object[] { 142307070918765L, "system", "sys_timers", "PageView", null, null, null, "dashboard", false, null, "任务调度", 0, null, 0L, "[0],", null, null, "/timers", 100, 0, 0, null, null, null, "Y", 1 });

            migrationBuilder.InsertData(
                table: "sys_menu",
                columns: new[] { "Id", "Application", "Code", "Component", "CreatedTime", "CreatedUserId", "CreatedUserName", "Icon", "IsDeleted", "Link", "Name", "OpenType", "Permission", "Pid", "Pids", "Redirect", "Remark", "Router", "Sort", "Status", "Type", "UpdatedTime", "UpdatedUserId", "UpdatedUserName", "Visible", "Weight" },
                values: new object[] { 142307070918766L, "system", "sys_timers_mgr", "system/timers/index", null, null, null, null, false, null, "任务管理", 1, null, 142307070918765L, "[0],[142307070918765],", null, null, "/timers", 100, 0, 1, null, null, null, "Y", 1 });

            migrationBuilder.InsertData(
                table: "sys_menu",
                columns: new[] { "Id", "Application", "Code", "Component", "CreatedTime", "CreatedUserId", "CreatedUserName", "Icon", "IsDeleted", "Link", "Name", "OpenType", "Permission", "Pid", "Pids", "Redirect", "Remark", "Router", "Sort", "Status", "Type", "UpdatedTime", "UpdatedUserId", "UpdatedUserName", "Visible", "Weight" },
                values: new object[] { 142307070918767L, "system", "sys_timers_mgr_page", null, null, null, null, null, false, null, "定时任务查询", 0, "sysTimers:page", 142307070918766L, "[0],[142307070918765],[142307070918766],", null, null, null, 100, 0, 2, null, null, null, "Y", 1 });

            migrationBuilder.InsertData(
                table: "sys_menu",
                columns: new[] { "Id", "Application", "Code", "Component", "CreatedTime", "CreatedUserId", "CreatedUserName", "Icon", "IsDeleted", "Link", "Name", "OpenType", "Permission", "Pid", "Pids", "Redirect", "Remark", "Router", "Sort", "Status", "Type", "UpdatedTime", "UpdatedUserId", "UpdatedUserName", "Visible", "Weight" },
                values: new object[] { 142307070918768L, "system", "sys_timers_mgr_list", null, null, null, null, null, false, null, "定时任务列表", 0, "sysTimers:list", 142307070918766L, "[0],[142307070918765],[142307070918766],", null, null, null, 100, 0, 2, null, null, null, "Y", 1 });

            migrationBuilder.InsertData(
                table: "sys_menu",
                columns: new[] { "Id", "Application", "Code", "Component", "CreatedTime", "CreatedUserId", "CreatedUserName", "Icon", "IsDeleted", "Link", "Name", "OpenType", "Permission", "Pid", "Pids", "Redirect", "Remark", "Router", "Sort", "Status", "Type", "UpdatedTime", "UpdatedUserId", "UpdatedUserName", "Visible", "Weight" },
                values: new object[] { 142307070918769L, "system", "sys_timers_mgr_detail", null, null, null, null, null, false, null, "定时任务详情", 0, "sysTimers:detail", 142307070918766L, "[0],[142307070918765],[142307070918766],", null, null, null, 100, 0, 2, null, null, null, "Y", 1 });

            migrationBuilder.InsertData(
                table: "sys_menu",
                columns: new[] { "Id", "Application", "Code", "Component", "CreatedTime", "CreatedUserId", "CreatedUserName", "Icon", "IsDeleted", "Link", "Name", "OpenType", "Permission", "Pid", "Pids", "Redirect", "Remark", "Router", "Sort", "Status", "Type", "UpdatedTime", "UpdatedUserId", "UpdatedUserName", "Visible", "Weight" },
                values: new object[] { 142307070918770L, "system", "sys_timers_mgr_add", null, null, null, null, null, false, null, "定时任务增加", 0, "sysTimers:add", 142307070918766L, "[0],[142307070918765],[142307070918766],", null, null, null, 100, 0, 2, null, null, null, "Y", 1 });

            migrationBuilder.InsertData(
                table: "sys_menu",
                columns: new[] { "Id", "Application", "Code", "Component", "CreatedTime", "CreatedUserId", "CreatedUserName", "Icon", "IsDeleted", "Link", "Name", "OpenType", "Permission", "Pid", "Pids", "Redirect", "Remark", "Router", "Sort", "Status", "Type", "UpdatedTime", "UpdatedUserId", "UpdatedUserName", "Visible", "Weight" },
                values: new object[] { 142307070918771L, "system", "sys_timers_mgr_delete", null, null, null, null, null, false, null, "定时任务删除", 0, "sysTimers:delete", 142307070918766L, "[0],[142307070918765],[142307070918766],", null, null, null, 100, 0, 2, null, null, null, "Y", 1 });

            migrationBuilder.InsertData(
                table: "sys_menu",
                columns: new[] { "Id", "Application", "Code", "Component", "CreatedTime", "CreatedUserId", "CreatedUserName", "Icon", "IsDeleted", "Link", "Name", "OpenType", "Permission", "Pid", "Pids", "Redirect", "Remark", "Router", "Sort", "Status", "Type", "UpdatedTime", "UpdatedUserId", "UpdatedUserName", "Visible", "Weight" },
                values: new object[] { 142307070918772L, "system", "sys_timers_mgr_edit", null, null, null, null, null, false, null, "定时任务编辑", 0, "sysTimers:edit", 142307070918766L, "[0],[142307070918765],[142307070918766],", null, null, null, 100, 0, 2, null, null, null, "Y", 1 });

            migrationBuilder.InsertData(
                table: "sys_menu",
                columns: new[] { "Id", "Application", "Code", "Component", "CreatedTime", "CreatedUserId", "CreatedUserName", "Icon", "IsDeleted", "Link", "Name", "OpenType", "Permission", "Pid", "Pids", "Redirect", "Remark", "Router", "Sort", "Status", "Type", "UpdatedTime", "UpdatedUserId", "UpdatedUserName", "Visible", "Weight" },
                values: new object[] { 142307070918773L, "system", "sys_timers_mgr_get_action_classes", null, null, null, null, null, false, null, "定时任务可执行列表", 0, "sysTimers:getActionClasses", 142307070918766L, "[0],[142307070918765],[142307070918766],", null, null, null, 100, 0, 2, null, null, null, "Y", 1 });

            migrationBuilder.InsertData(
                table: "sys_menu",
                columns: new[] { "Id", "Application", "Code", "Component", "CreatedTime", "CreatedUserId", "CreatedUserName", "Icon", "IsDeleted", "Link", "Name", "OpenType", "Permission", "Pid", "Pids", "Redirect", "Remark", "Router", "Sort", "Status", "Type", "UpdatedTime", "UpdatedUserId", "UpdatedUserName", "Visible", "Weight" },
                values: new object[] { 142307070918774L, "system", "sys_timers_mgr_start", null, null, null, null, null, false, null, "定时任务启动", 0, "sysTimers:start", 142307070918766L, "[0],[142307070918765],[142307070918766],", null, null, null, 100, 0, 2, null, null, null, "Y", 1 });

            migrationBuilder.InsertData(
                table: "sys_menu",
                columns: new[] { "Id", "Application", "Code", "Component", "CreatedTime", "CreatedUserId", "CreatedUserName", "Icon", "IsDeleted", "Link", "Name", "OpenType", "Permission", "Pid", "Pids", "Redirect", "Remark", "Router", "Sort", "Status", "Type", "UpdatedTime", "UpdatedUserId", "UpdatedUserName", "Visible", "Weight" },
                values: new object[] { 142307070918775L, "system", "sys_timers_mgr_stop", null, null, null, null, null, false, null, "定时任务关闭", 0, "sysTimers:stop", 142307070918766L, "[0],[142307070918765],[142307070918766],", null, null, null, 100, 0, 2, null, null, null, "Y", 1 });

            migrationBuilder.InsertData(
                table: "sys_menu",
                columns: new[] { "Id", "Application", "Code", "Component", "CreatedTime", "CreatedUserId", "CreatedUserName", "Icon", "IsDeleted", "Link", "Name", "OpenType", "Permission", "Pid", "Pids", "Redirect", "Remark", "Router", "Sort", "Status", "Type", "UpdatedTime", "UpdatedUserId", "UpdatedUserName", "Visible", "Weight" },
                values: new object[] { 142307070918777L, "manage", "sys_user_mgr_login", null, null, null, null, null, false, null, "用户登录信息", 0, "getLoginUser", 142307070910564L, "[0],[142307070910563],[142307070910564],", null, null, null, 100, 1, 2, null, null, null, "N", 1 });

            migrationBuilder.InsertData(
                table: "sys_menu",
                columns: new[] { "Id", "Application", "Code", "Component", "CreatedTime", "CreatedUserId", "CreatedUserName", "Icon", "IsDeleted", "Link", "Name", "OpenType", "Permission", "Pid", "Pids", "Redirect", "Remark", "Router", "Sort", "Status", "Type", "UpdatedTime", "UpdatedUserId", "UpdatedUserName", "Visible", "Weight" },
                values: new object[] { 142307070918782L, "platform", "sys_tenant", "PageView", null, null, null, "switcher", false, null, "SaaS租户", 0, null, 0L, "[0],", null, null, "/tenant", 100, 0, 1, null, null, null, "Y", 1 });

            migrationBuilder.InsertData(
                table: "sys_menu",
                columns: new[] { "Id", "Application", "Code", "Component", "CreatedTime", "CreatedUserId", "CreatedUserName", "Icon", "IsDeleted", "Link", "Name", "OpenType", "Permission", "Pid", "Pids", "Redirect", "Remark", "Router", "Sort", "Status", "Type", "UpdatedTime", "UpdatedUserId", "UpdatedUserName", "Visible", "Weight" },
                values: new object[] { 142307070918783L, "platform", "sys_tenant_mgr", "system/tenant/index", null, null, null, null, false, null, "租户管理", 1, null, 142307070918782L, "[0],[142307070918782],", null, null, "/tenant", 100, 0, 1, null, null, null, "Y", 1 });

            migrationBuilder.InsertData(
                table: "sys_menu",
                columns: new[] { "Id", "Application", "Code", "Component", "CreatedTime", "CreatedUserId", "CreatedUserName", "Icon", "IsDeleted", "Link", "Name", "OpenType", "Permission", "Pid", "Pids", "Redirect", "Remark", "Router", "Sort", "Status", "Type", "UpdatedTime", "UpdatedUserId", "UpdatedUserName", "Visible", "Weight" },
                values: new object[] { 142307070922821L, "platform", "sys_tenant_mgr_page", null, null, null, null, null, false, null, "租户查询", 0, "sysTenant:page", 142307070918783L, "[0],[142307070918782],[142307070918783],", null, null, null, 100, 0, 2, null, null, null, "Y", 1 });

            migrationBuilder.InsertData(
                table: "sys_menu",
                columns: new[] { "Id", "Application", "Code", "Component", "CreatedTime", "CreatedUserId", "CreatedUserName", "Icon", "IsDeleted", "Link", "Name", "OpenType", "Permission", "Pid", "Pids", "Redirect", "Remark", "Router", "Sort", "Status", "Type", "UpdatedTime", "UpdatedUserId", "UpdatedUserName", "Visible", "Weight" },
                values: new object[] { 142307070922822L, "platform", "sys_tenant_mgr_detail", null, null, null, null, null, false, null, "租户详情", 0, "sysTenant:detail", 142307070918783L, "[0],[142307070918782],[142307070918783],", null, null, null, 100, 0, 2, null, null, null, "Y", 1 });

            migrationBuilder.InsertData(
                table: "sys_menu",
                columns: new[] { "Id", "Application", "Code", "Component", "CreatedTime", "CreatedUserId", "CreatedUserName", "Icon", "IsDeleted", "Link", "Name", "OpenType", "Permission", "Pid", "Pids", "Redirect", "Remark", "Router", "Sort", "Status", "Type", "UpdatedTime", "UpdatedUserId", "UpdatedUserName", "Visible", "Weight" },
                values: new object[] { 142307070922823L, "platform", "sys_tenant_mgr_add", null, null, null, null, null, false, null, "租户增加", 0, "sysTenant:add", 142307070918783L, "[0],[142307070918782],[142307070918783],", null, null, null, 100, 0, 2, null, null, null, "Y", 1 });

            migrationBuilder.InsertData(
                table: "sys_menu",
                columns: new[] { "Id", "Application", "Code", "Component", "CreatedTime", "CreatedUserId", "CreatedUserName", "Icon", "IsDeleted", "Link", "Name", "OpenType", "Permission", "Pid", "Pids", "Redirect", "Remark", "Router", "Sort", "Status", "Type", "UpdatedTime", "UpdatedUserId", "UpdatedUserName", "Visible", "Weight" },
                values: new object[] { 142307070922824L, "platform", "sys_tenant_mgr_delete", null, null, null, null, null, false, null, "租户删除", 0, "sysTenant:delete", 142307070918783L, "[0],[142307070918782],[142307070918783],", null, null, null, 100, 0, 2, null, null, null, "Y", 1 });

            migrationBuilder.InsertData(
                table: "sys_menu",
                columns: new[] { "Id", "Application", "Code", "Component", "CreatedTime", "CreatedUserId", "CreatedUserName", "Icon", "IsDeleted", "Link", "Name", "OpenType", "Permission", "Pid", "Pids", "Redirect", "Remark", "Router", "Sort", "Status", "Type", "UpdatedTime", "UpdatedUserId", "UpdatedUserName", "Visible", "Weight" },
                values: new object[] { 142307070922825L, "platform", "sys_tenant_mgr_edit", null, null, null, null, null, false, null, "租户编辑", 0, "sysTenant:edit", 142307070918783L, "[0],[142307070918782],[142307070918783],", null, null, null, 100, 0, 2, null, null, null, "Y", 1 });

            migrationBuilder.InsertData(
                table: "sys_menu",
                columns: new[] { "Id", "Application", "Code", "Component", "CreatedTime", "CreatedUserId", "CreatedUserName", "Icon", "IsDeleted", "Link", "Name", "OpenType", "Permission", "Pid", "Pids", "Redirect", "Remark", "Router", "Sort", "Status", "Type", "UpdatedTime", "UpdatedUserId", "UpdatedUserName", "Visible", "Weight" },
                values: new object[] { 142307070922826L, "platform", "sys_tenant_mgr_grant_menu", null, null, null, null, null, false, null, "授权租户菜单", 0, "sysTenant:grantMenu", 142307070918783L, "[0],[142307070918782],[142307070918783],", null, null, null, 100, 0, 2, null, null, null, "Y", 1 });

            migrationBuilder.InsertData(
                table: "sys_menu",
                columns: new[] { "Id", "Application", "Code", "Component", "CreatedTime", "CreatedUserId", "CreatedUserName", "Icon", "IsDeleted", "Link", "Name", "OpenType", "Permission", "Pid", "Pids", "Redirect", "Remark", "Router", "Sort", "Status", "Type", "UpdatedTime", "UpdatedUserId", "UpdatedUserName", "Visible", "Weight" },
                values: new object[] { 142307070922827L, "platform", "sys_tenant_mgr_reset_pwd", null, null, null, null, null, false, null, "重置租户密码", 0, "sysTenant:resetPwd", 142307070918783L, "[0],[142307070918782],[142307070918783],", null, null, null, 100, 0, 2, null, null, null, "Y", 1 });

            migrationBuilder.InsertData(
                table: "sys_menu",
                columns: new[] { "Id", "Application", "Code", "Component", "CreatedTime", "CreatedUserId", "CreatedUserName", "Icon", "IsDeleted", "Link", "Name", "OpenType", "Permission", "Pid", "Pids", "Redirect", "Remark", "Router", "Sort", "Status", "Type", "UpdatedTime", "UpdatedUserId", "UpdatedUserName", "Visible", "Weight" },
                values: new object[] { 142307070922874L, "manage", "sys_file_mgr_sys_file_upload_avatar", null, null, null, null, null, false, null, "头像上传", 0, "sysFileInfo:uploadAvatar", 142307070918757L, "[0],[142307070918756],[142307070918757],", null, null, null, 100, 0, 2, null, null, null, "Y", 1 });

            migrationBuilder.InsertData(
                table: "sys_menu",
                columns: new[] { "Id", "Application", "Code", "Component", "CreatedTime", "CreatedUserId", "CreatedUserName", "Icon", "IsDeleted", "Link", "Name", "OpenType", "Permission", "Pid", "Pids", "Redirect", "Remark", "Router", "Sort", "Status", "Type", "UpdatedTime", "UpdatedUserId", "UpdatedUserName", "Visible", "Weight" },
                values: new object[] { 142307070922875L, "manage", "sys_file_mgr_sys_file_upload_document", null, null, null, null, null, false, null, "文档上传", 0, "sysFileInfo:uploadDocument", 142307070918757L, "[0],[142307070918756],[142307070918757],", null, null, null, 100, 0, 2, null, null, null, "Y", 1 });

            migrationBuilder.InsertData(
                table: "sys_menu",
                columns: new[] { "Id", "Application", "Code", "Component", "CreatedTime", "CreatedUserId", "CreatedUserName", "Icon", "IsDeleted", "Link", "Name", "OpenType", "Permission", "Pid", "Pids", "Redirect", "Remark", "Router", "Sort", "Status", "Type", "UpdatedTime", "UpdatedUserId", "UpdatedUserName", "Visible", "Weight" },
                values: new object[] { 142307070922876L, "manage", "sys_file_mgr_sys_file_upload_shop", null, null, null, null, null, false, null, "商城上传", 0, "sysFileInfo:uploadShop", 142307070918757L, "[0],[142307070918756],[142307070918757],", null, null, null, 100, 0, 2, null, null, null, "Y", 1 });

            migrationBuilder.InsertData(
                table: "sys_role",
                columns: new[] { "Id", "Code", "CreatedTime", "CreatedUserId", "CreatedUserName", "IsDeleted", "Level", "Name", "Remark", "RoleType", "Sort", "Status", "TenantId", "UpdatedTime", "UpdatedUserId", "UpdatedUserName" },
                values: new object[] { 142307070910554L, "sup_manager_role", null, null, null, false, 0, "超级管理员", "超级管理员", 10000, 100, 0, 0L, null, null, null });

            migrationBuilder.InsertData(
                table: "sys_role",
                columns: new[] { "Id", "Code", "CreatedTime", "CreatedUserId", "CreatedUserName", "IsDeleted", "Level", "Name", "Remark", "RoleType", "Sort", "Status", "TenantId", "UpdatedTime", "UpdatedUserId", "UpdatedUserName" },
                values: new object[] { 142307070910555L, "sys_manager_role", null, null, null, false, 0, "系统管理员", "系统管理员", 1000, 100, 0, 142307070918780L, null, null, null });

            migrationBuilder.InsertData(
                table: "sys_role",
                columns: new[] { "Id", "Code", "CreatedTime", "CreatedUserId", "CreatedUserName", "IsDeleted", "Level", "Name", "Remark", "RoleType", "Sort", "Status", "TenantId", "UpdatedTime", "UpdatedUserId", "UpdatedUserName" },
                values: new object[] { 142307070910556L, "common_role", null, null, null, false, 100, "普通用户", "普通用户", 100, 101, 0, 142307070918780L, null, null, null });

            migrationBuilder.InsertData(
                table: "sys_timer",
                columns: new[] { "Id", "CreatedTime", "CreatedUserId", "CreatedUserName", "Cron", "DoOnce", "ExecuteType", "Headers", "Interval", "IsDeleted", "JobName", "Remark", "RequestParameters", "RequestType", "RequestUrl", "StartNow", "TimerType", "UpdatedTime", "UpdatedUserId", "UpdatedUserName" },
                values: new object[] { 142307070910556L, null, null, null, null, false, 1, null, 5, false, "百度api", "接口API", null, 2, "https://www.baidu.com", false, 0, null, null, null });

            migrationBuilder.InsertData(
                table: "sys_user",
                columns: new[] { "Id", "Account", "Avatar", "Birthday", "CreatedTime", "CreatedUserId", "CreatedUserName", "Email", "IsDeleted", "LastLoginIp", "LastLoginTime", "NickName", "PassKey", "Password", "Sex", "Status", "TenantId", "UpdatedTime", "UpdatedUserId", "UpdatedUserName" },
                values: new object[] { 142307070910551L, "superAdmin", null, new DateTimeOffset(new DateTime(2022, 1, 28, 22, 20, 3, 135, DateTimeKind.Unspecified).AddTicks(7917), new TimeSpan(0, 8, 0, 0, 0)), null, null, null, null, false, null, null, "superAdmin", "8d7b32eaf38944eb8abd839b580aec2a", "e10adc3949ba59abbe56e057f20f883e", 1, 0, 0L, null, null, null });

            migrationBuilder.InsertData(
                table: "sys_user",
                columns: new[] { "Id", "Account", "Avatar", "Birthday", "CreatedTime", "CreatedUserId", "CreatedUserName", "Email", "IsDeleted", "LastLoginIp", "LastLoginTime", "NickName", "PassKey", "Password", "Sex", "Status", "TenantId", "UpdatedTime", "UpdatedUserId", "UpdatedUserName" },
                values: new object[] { 142307070910552L, "admin", null, new DateTimeOffset(new DateTime(2022, 1, 28, 22, 20, 3, 135, DateTimeKind.Unspecified).AddTicks(7956), new TimeSpan(0, 8, 0, 0, 0)), null, null, null, null, false, null, null, "admin", "f027ad673b72450b8f59cfa3c6191323", "e10adc3949ba59abbe56e057f20f883e", 1, 0, 142307070918780L, null, null, null });

            migrationBuilder.InsertData(
                table: "sys_user",
                columns: new[] { "Id", "Account", "Avatar", "Birthday", "CreatedTime", "CreatedUserId", "CreatedUserName", "Email", "IsDeleted", "LastLoginIp", "LastLoginTime", "NickName", "PassKey", "Password", "Sex", "Status", "TenantId", "UpdatedTime", "UpdatedUserId", "UpdatedUserName" },
                values: new object[] { 142307070910553L, "testUser", null, new DateTimeOffset(new DateTime(2022, 1, 28, 22, 20, 3, 135, DateTimeKind.Unspecified).AddTicks(7963), new TimeSpan(0, 8, 0, 0, 0)), null, null, null, null, false, null, null, "霸王龙", "9b566737e6b24e96a14afb278ba7aa60", "e10adc3949ba59abbe56e057f20f883e", 1, 0, 142307070918780L, null, null, null });

            migrationBuilder.InsertData(
                table: "sys_user",
                columns: new[] { "Id", "Account", "Avatar", "Birthday", "CreatedTime", "CreatedUserId", "CreatedUserName", "Email", "IsDeleted", "LastLoginIp", "LastLoginTime", "NickName", "PassKey", "Password", "Sex", "Status", "TenantId", "UpdatedTime", "UpdatedUserId", "UpdatedUserName" },
                values: new object[] { 142307070910554L, "admin01", null, new DateTimeOffset(new DateTime(2022, 1, 28, 22, 20, 3, 135, DateTimeKind.Unspecified).AddTicks(7970), new TimeSpan(0, 8, 0, 0, 0)), null, null, null, null, false, null, null, "admin01", "95e10d486b47449e8558355d34b508d2", "e10adc3949ba59abbe56e057f20f883e", 1, 0, 142307070918781L, null, null, null });

            migrationBuilder.InsertData(
                table: "sys_role_menu",
                columns: new[] { "SysMenuId", "SysRoleId" },
                values: new object[] { 142307070910563L, 142307070910556L });

            migrationBuilder.InsertData(
                table: "sys_role_menu",
                columns: new[] { "SysMenuId", "SysRoleId" },
                values: new object[] { 142307070910564L, 142307070910556L });

            migrationBuilder.InsertData(
                table: "sys_role_menu",
                columns: new[] { "SysMenuId", "SysRoleId" },
                values: new object[] { 142307070910565L, 142307070910556L });

            migrationBuilder.InsertData(
                table: "sys_role_menu",
                columns: new[] { "SysMenuId", "SysRoleId" },
                values: new object[] { 142307070910566L, 142307070910556L });

            migrationBuilder.InsertData(
                table: "sys_role_menu",
                columns: new[] { "SysMenuId", "SysRoleId" },
                values: new object[] { 142307070910567L, 142307070910556L });

            migrationBuilder.InsertData(
                table: "sys_role_menu",
                columns: new[] { "SysMenuId", "SysRoleId" },
                values: new object[] { 142307070910568L, 142307070910556L });

            migrationBuilder.InsertData(
                table: "sys_role_menu",
                columns: new[] { "SysMenuId", "SysRoleId" },
                values: new object[] { 142307070910569L, 142307070910556L });

            migrationBuilder.InsertData(
                table: "sys_role_menu",
                columns: new[] { "SysMenuId", "SysRoleId" },
                values: new object[] { 142307070910570L, 142307070910556L });

            migrationBuilder.InsertData(
                table: "sys_role_menu",
                columns: new[] { "SysMenuId", "SysRoleId" },
                values: new object[] { 142307070910571L, 142307070910556L });

            migrationBuilder.InsertData(
                table: "sys_role_menu",
                columns: new[] { "SysMenuId", "SysRoleId" },
                values: new object[] { 142307070910572L, 142307070910556L });

            migrationBuilder.InsertData(
                table: "sys_role_menu",
                columns: new[] { "SysMenuId", "SysRoleId" },
                values: new object[] { 142307070910573L, 142307070910556L });

            migrationBuilder.InsertData(
                table: "sys_role_menu",
                columns: new[] { "SysMenuId", "SysRoleId" },
                values: new object[] { 142307070910574L, 142307070910556L });

            migrationBuilder.InsertData(
                table: "sys_role_menu",
                columns: new[] { "SysMenuId", "SysRoleId" },
                values: new object[] { 142307070910575L, 142307070910556L });

            migrationBuilder.InsertData(
                table: "sys_role_menu",
                columns: new[] { "SysMenuId", "SysRoleId" },
                values: new object[] { 142307070910576L, 142307070910556L });

            migrationBuilder.InsertData(
                table: "sys_role_menu",
                columns: new[] { "SysMenuId", "SysRoleId" },
                values: new object[] { 142307070910577L, 142307070910556L });

            migrationBuilder.InsertData(
                table: "sys_role_menu",
                columns: new[] { "SysMenuId", "SysRoleId" },
                values: new object[] { 142307070910578L, 142307070910556L });

            migrationBuilder.InsertData(
                table: "sys_role_menu",
                columns: new[] { "SysMenuId", "SysRoleId" },
                values: new object[] { 142307070910579L, 142307070910556L });

            migrationBuilder.InsertData(
                table: "sys_role_menu",
                columns: new[] { "SysMenuId", "SysRoleId" },
                values: new object[] { 142307070910580L, 142307070910556L });

            migrationBuilder.InsertData(
                table: "sys_role_menu",
                columns: new[] { "SysMenuId", "SysRoleId" },
                values: new object[] { 142307070914633L, 142307070910556L });

            migrationBuilder.InsertData(
                table: "sys_role_menu",
                columns: new[] { "SysMenuId", "SysRoleId" },
                values: new object[] { 142307070914634L, 142307070910556L });

            migrationBuilder.InsertData(
                table: "sys_role_menu",
                columns: new[] { "SysMenuId", "SysRoleId" },
                values: new object[] { 142307070914635L, 142307070910556L });

            migrationBuilder.InsertData(
                table: "sys_role_menu",
                columns: new[] { "SysMenuId", "SysRoleId" },
                values: new object[] { 142307070914636L, 142307070910556L });

            migrationBuilder.InsertData(
                table: "sys_role_menu",
                columns: new[] { "SysMenuId", "SysRoleId" },
                values: new object[] { 142307070914637L, 142307070910556L });

            migrationBuilder.InsertData(
                table: "sys_role_menu",
                columns: new[] { "SysMenuId", "SysRoleId" },
                values: new object[] { 142307070914638L, 142307070910556L });

            migrationBuilder.InsertData(
                table: "sys_role_menu",
                columns: new[] { "SysMenuId", "SysRoleId" },
                values: new object[] { 142307070914639L, 142307070910556L });

            migrationBuilder.InsertData(
                table: "sys_role_menu",
                columns: new[] { "SysMenuId", "SysRoleId" },
                values: new object[] { 142307070914640L, 142307070910556L });

            migrationBuilder.InsertData(
                table: "sys_role_menu",
                columns: new[] { "SysMenuId", "SysRoleId" },
                values: new object[] { 142307070914641L, 142307070910556L });

            migrationBuilder.InsertData(
                table: "sys_role_menu",
                columns: new[] { "SysMenuId", "SysRoleId" },
                values: new object[] { 142307070914642L, 142307070910556L });

            migrationBuilder.InsertData(
                table: "sys_role_menu",
                columns: new[] { "SysMenuId", "SysRoleId" },
                values: new object[] { 142307070914643L, 142307070910556L });

            migrationBuilder.InsertData(
                table: "sys_role_menu",
                columns: new[] { "SysMenuId", "SysRoleId" },
                values: new object[] { 142307070914644L, 142307070910556L });

            migrationBuilder.InsertData(
                table: "sys_role_menu",
                columns: new[] { "SysMenuId", "SysRoleId" },
                values: new object[] { 142307070914645L, 142307070910556L });

            migrationBuilder.InsertData(
                table: "sys_role_menu",
                columns: new[] { "SysMenuId", "SysRoleId" },
                values: new object[] { 142307070914646L, 142307070910556L });

            migrationBuilder.InsertData(
                table: "sys_role_menu",
                columns: new[] { "SysMenuId", "SysRoleId" },
                values: new object[] { 142307070914647L, 142307070910556L });

            migrationBuilder.InsertData(
                table: "sys_role_menu",
                columns: new[] { "SysMenuId", "SysRoleId" },
                values: new object[] { 142307070914648L, 142307070910556L });

            migrationBuilder.InsertData(
                table: "sys_role_menu",
                columns: new[] { "SysMenuId", "SysRoleId" },
                values: new object[] { 142307070914649L, 142307070910556L });

            migrationBuilder.InsertData(
                table: "sys_role_menu",
                columns: new[] { "SysMenuId", "SysRoleId" },
                values: new object[] { 142307070914650L, 142307070910556L });

            migrationBuilder.InsertData(
                table: "sys_role_menu",
                columns: new[] { "SysMenuId", "SysRoleId" },
                values: new object[] { 142307070914651L, 142307070910556L });

            migrationBuilder.InsertData(
                table: "sys_role_menu",
                columns: new[] { "SysMenuId", "SysRoleId" },
                values: new object[] { 142307070914652L, 142307070910556L });

            migrationBuilder.InsertData(
                table: "sys_role_menu",
                columns: new[] { "SysMenuId", "SysRoleId" },
                values: new object[] { 142307070914653L, 142307070910556L });

            migrationBuilder.InsertData(
                table: "sys_role_menu",
                columns: new[] { "SysMenuId", "SysRoleId" },
                values: new object[] { 142307070914654L, 142307070910556L });

            migrationBuilder.InsertData(
                table: "sys_role_menu",
                columns: new[] { "SysMenuId", "SysRoleId" },
                values: new object[] { 142307070914655L, 142307070910556L });

            migrationBuilder.InsertData(
                table: "sys_role_menu",
                columns: new[] { "SysMenuId", "SysRoleId" },
                values: new object[] { 142307070914656L, 142307070910556L });

            migrationBuilder.InsertData(
                table: "sys_role_menu",
                columns: new[] { "SysMenuId", "SysRoleId" },
                values: new object[] { 142307070914657L, 142307070910556L });

            migrationBuilder.InsertData(
                table: "sys_role_menu",
                columns: new[] { "SysMenuId", "SysRoleId" },
                values: new object[] { 142307070914658L, 142307070910556L });

            migrationBuilder.InsertData(
                table: "sys_role_menu",
                columns: new[] { "SysMenuId", "SysRoleId" },
                values: new object[] { 142307070914659L, 142307070910556L });

            migrationBuilder.InsertData(
                table: "sys_role_menu",
                columns: new[] { "SysMenuId", "SysRoleId" },
                values: new object[] { 142307070914660L, 142307070910556L });

            migrationBuilder.InsertData(
                table: "sys_role_menu",
                columns: new[] { "SysMenuId", "SysRoleId" },
                values: new object[] { 142307070914661L, 142307070910556L });

            migrationBuilder.InsertData(
                table: "sys_role_menu",
                columns: new[] { "SysMenuId", "SysRoleId" },
                values: new object[] { 142307070918756L, 142307070910556L });

            migrationBuilder.InsertData(
                table: "sys_role_menu",
                columns: new[] { "SysMenuId", "SysRoleId" },
                values: new object[] { 142307070918757L, 142307070910556L });

            migrationBuilder.InsertData(
                table: "sys_role_menu",
                columns: new[] { "SysMenuId", "SysRoleId" },
                values: new object[] { 142307070918758L, 142307070910556L });

            migrationBuilder.InsertData(
                table: "sys_role_menu",
                columns: new[] { "SysMenuId", "SysRoleId" },
                values: new object[] { 142307070918759L, 142307070910556L });

            migrationBuilder.InsertData(
                table: "sys_role_menu",
                columns: new[] { "SysMenuId", "SysRoleId" },
                values: new object[] { 142307070918760L, 142307070910556L });

            migrationBuilder.InsertData(
                table: "sys_role_menu",
                columns: new[] { "SysMenuId", "SysRoleId" },
                values: new object[] { 142307070918761L, 142307070910556L });

            migrationBuilder.InsertData(
                table: "sys_role_menu",
                columns: new[] { "SysMenuId", "SysRoleId" },
                values: new object[] { 142307070918762L, 142307070910556L });

            migrationBuilder.InsertData(
                table: "sys_role_menu",
                columns: new[] { "SysMenuId", "SysRoleId" },
                values: new object[] { 142307070918764L, 142307070910556L });

            migrationBuilder.InsertData(
                table: "sys_role_menu",
                columns: new[] { "SysMenuId", "SysRoleId" },
                values: new object[] { 142307070918765L, 142307070910556L });

            migrationBuilder.InsertData(
                table: "sys_role_menu",
                columns: new[] { "SysMenuId", "SysRoleId" },
                values: new object[] { 142307070918766L, 142307070910556L });

            migrationBuilder.InsertData(
                table: "sys_role_menu",
                columns: new[] { "SysMenuId", "SysRoleId" },
                values: new object[] { 142307070918767L, 142307070910556L });

            migrationBuilder.InsertData(
                table: "sys_role_menu",
                columns: new[] { "SysMenuId", "SysRoleId" },
                values: new object[] { 142307070918768L, 142307070910556L });

            migrationBuilder.InsertData(
                table: "sys_role_menu",
                columns: new[] { "SysMenuId", "SysRoleId" },
                values: new object[] { 142307070918769L, 142307070910556L });

            migrationBuilder.InsertData(
                table: "sys_role_menu",
                columns: new[] { "SysMenuId", "SysRoleId" },
                values: new object[] { 142307070918770L, 142307070910556L });

            migrationBuilder.InsertData(
                table: "sys_role_menu",
                columns: new[] { "SysMenuId", "SysRoleId" },
                values: new object[] { 142307070918771L, 142307070910556L });

            migrationBuilder.InsertData(
                table: "sys_role_menu",
                columns: new[] { "SysMenuId", "SysRoleId" },
                values: new object[] { 142307070918772L, 142307070910556L });

            migrationBuilder.InsertData(
                table: "sys_role_menu",
                columns: new[] { "SysMenuId", "SysRoleId" },
                values: new object[] { 142307070918773L, 142307070910556L });

            migrationBuilder.InsertData(
                table: "sys_role_menu",
                columns: new[] { "SysMenuId", "SysRoleId" },
                values: new object[] { 142307070918774L, 142307070910556L });

            migrationBuilder.InsertData(
                table: "sys_role_menu",
                columns: new[] { "SysMenuId", "SysRoleId" },
                values: new object[] { 142307070918775L, 142307070910556L });

            migrationBuilder.InsertData(
                table: "sys_role_menu",
                columns: new[] { "SysMenuId", "SysRoleId" },
                values: new object[] { 142307070918777L, 142307070910556L });

            migrationBuilder.InsertData(
                table: "sys_role_menu",
                columns: new[] { "SysMenuId", "SysRoleId" },
                values: new object[] { 142307070918782L, 142307070910556L });

            migrationBuilder.InsertData(
                table: "sys_role_menu",
                columns: new[] { "SysMenuId", "SysRoleId" },
                values: new object[] { 142307070918783L, 142307070910556L });

            migrationBuilder.InsertData(
                table: "sys_role_menu",
                columns: new[] { "SysMenuId", "SysRoleId" },
                values: new object[] { 142307070922821L, 142307070910556L });

            migrationBuilder.InsertData(
                table: "sys_role_menu",
                columns: new[] { "SysMenuId", "SysRoleId" },
                values: new object[] { 142307070922822L, 142307070910556L });

            migrationBuilder.InsertData(
                table: "sys_role_menu",
                columns: new[] { "SysMenuId", "SysRoleId" },
                values: new object[] { 142307070922823L, 142307070910556L });

            migrationBuilder.InsertData(
                table: "sys_role_menu",
                columns: new[] { "SysMenuId", "SysRoleId" },
                values: new object[] { 142307070922824L, 142307070910556L });

            migrationBuilder.InsertData(
                table: "sys_role_menu",
                columns: new[] { "SysMenuId", "SysRoleId" },
                values: new object[] { 142307070922825L, 142307070910556L });

            migrationBuilder.InsertData(
                table: "sys_role_menu",
                columns: new[] { "SysMenuId", "SysRoleId" },
                values: new object[] { 142307070922826L, 142307070910556L });

            migrationBuilder.InsertData(
                table: "sys_role_menu",
                columns: new[] { "SysMenuId", "SysRoleId" },
                values: new object[] { 142307070922827L, 142307070910556L });

            migrationBuilder.InsertData(
                table: "sys_role_menu",
                columns: new[] { "SysMenuId", "SysRoleId" },
                values: new object[] { 142307070922874L, 142307070910556L });

            migrationBuilder.InsertData(
                table: "sys_role_menu",
                columns: new[] { "SysMenuId", "SysRoleId" },
                values: new object[] { 142307070922875L, 142307070910556L });

            migrationBuilder.InsertData(
                table: "sys_role_menu",
                columns: new[] { "SysMenuId", "SysRoleId" },
                values: new object[] { 142307070922876L, 142307070910556L });

            migrationBuilder.InsertData(
                table: "sys_user_role",
                columns: new[] { "SysRoleId", "SysUserId" },
                values: new object[] { 142307070910554L, 142307070910551L });

            migrationBuilder.InsertData(
                table: "sys_user_role",
                columns: new[] { "SysRoleId", "SysUserId" },
                values: new object[] { 142307070910555L, 142307070910552L });

            migrationBuilder.InsertData(
                table: "sys_user_role",
                columns: new[] { "SysRoleId", "SysUserId" },
                values: new object[] { 142307070910555L, 142307070910553L });

            migrationBuilder.CreateIndex(
                name: "IX_sys_role_menu_SysMenuId",
                table: "sys_role_menu",
                column: "SysMenuId");

            migrationBuilder.CreateIndex(
                name: "IX_sys_user_role_SysRoleId",
                table: "sys_user_role",
                column: "SysRoleId");

            migrationBuilder.CreateIndex(
                name: "IX_tracker_peer_TorrentId",
                table: "tracker_peer",
                column: "TorrentId");
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropTable(
                name: "sys_app");

            migrationBuilder.DropTable(
                name: "sys_config");

            migrationBuilder.DropTable(
                name: "sys_file");

            migrationBuilder.DropTable(
                name: "sys_log_audit");

            migrationBuilder.DropTable(
                name: "sys_log_ex");

            migrationBuilder.DropTable(
                name: "sys_log_op");

            migrationBuilder.DropTable(
                name: "sys_log_vis");

            migrationBuilder.DropTable(
                name: "sys_role_menu");

            migrationBuilder.DropTable(
                name: "sys_timer");

            migrationBuilder.DropTable(
                name: "sys_user_role");

            migrationBuilder.DropTable(
                name: "tracker_peer");

            migrationBuilder.DropTable(
                name: "sys_menu");

            migrationBuilder.DropTable(
                name: "sys_role");

            migrationBuilder.DropTable(
                name: "sys_user");

            migrationBuilder.DropTable(
                name: "tracker_torrent");
        }
    }
}
